mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Preserve "hidden" template fields.
SVN:trunk[3060]
This commit is contained in:
@@ -481,7 +481,7 @@ function RequestCreationForm($oP, $oUserOrg, $iSvcId = null, $iSubSvcId = null,
|
||||
$sValue = "<span id=\"field_{$sInputId}\">".$oRequest->GetFormElementForField($oP, $sClass, $sAttCode, $oAttDef, $value, '', 'attr_'.$sAttCode, '', $iFlags, $aArgs).'</span>';
|
||||
$aDetails[] = array('label' => $oAttDef->GetLabel(), 'value' => $sValue);
|
||||
}
|
||||
|
||||
$aHidden = array();
|
||||
if (!empty($aTemplateFields))
|
||||
{
|
||||
foreach ($aTemplateFields as $sAttCode => $oField)
|
||||
@@ -540,7 +540,7 @@ EOF
|
||||
{
|
||||
$oP->add("<input type=\"hidden\" name=\"attr_template_id\" value=\"{$aParameters['template_id']}\">");
|
||||
}
|
||||
|
||||
$oP->add(implode("\n", $aHidden));
|
||||
$oAttPlugin = new AttachmentPlugIn();
|
||||
$oAttPlugin->OnDisplayRelations($oRequest, $oP, true /* edit */);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user