Preserve "hidden" template fields.

SVN:trunk[3060]
This commit is contained in:
Denis Flaven
2014-01-22 14:09:53 +00:00
parent cd7af7a2ce
commit 0a53f8ec3f

View File

@@ -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>'; $sValue = "<span id=\"field_{$sInputId}\">".$oRequest->GetFormElementForField($oP, $sClass, $sAttCode, $oAttDef, $value, '', 'attr_'.$sAttCode, '', $iFlags, $aArgs).'</span>';
$aDetails[] = array('label' => $oAttDef->GetLabel(), 'value' => $sValue); $aDetails[] = array('label' => $oAttDef->GetLabel(), 'value' => $sValue);
} }
$aHidden = array();
if (!empty($aTemplateFields)) if (!empty($aTemplateFields))
{ {
foreach ($aTemplateFields as $sAttCode => $oField) 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("<input type=\"hidden\" name=\"attr_template_id\" value=\"{$aParameters['template_id']}\">");
} }
$oP->add(implode("\n", $aHidden));
$oAttPlugin = new AttachmentPlugIn(); $oAttPlugin = new AttachmentPlugIn();
$oAttPlugin->OnDisplayRelations($oRequest, $oP, true /* edit */); $oAttPlugin->OnDisplayRelations($oRequest, $oP, true /* edit */);