Templates processing aligned with "templates-base" 2.1.1: allow template fields with the same name the attribute code of the curent object.

SVN:2.0.2[3098]
This commit is contained in:
Denis Flaven
2014-03-11 14:05:42 +00:00
parent 2833ef0853
commit b795a20e59

View File

@@ -525,8 +525,6 @@ function RequestCreationForm($oP, $oUserOrg, $iSvcId = null, $iSubSvcId = null,
if (!empty($aTemplateFields)) if (!empty($aTemplateFields))
{ {
foreach ($aTemplateFields as $sAttCode => $oField) foreach ($aTemplateFields as $sAttCode => $oField)
{
if (!in_array($sAttCode, $aList))
{ {
$sValue = $oField->GetFormElement($oP, $sClass); $sValue = $oField->GetFormElement($oP, $sClass);
if ($oField->Get('input_type') == 'hidden') if ($oField->Get('input_type') == 'hidden')
@@ -539,7 +537,6 @@ function RequestCreationForm($oP, $oUserOrg, $iSvcId = null, $iSubSvcId = null,
} }
} }
} }
}
$oP->add_script( $oP->add_script(
<<<EOF <<<EOF