Explorar o código

Preserve "hidden" template fields.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3060 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=11) %!d(string=hai) anos
pai
achega
574eca10ec
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      portal/index.php

+ 2 - 2
portal/index.php

@@ -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 */);