From 3b257eeb3ac83c1f28b7f67f27b8e8c23effb92b Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 11 Mar 2014 14:03:14 +0000 Subject: [PATCH] Templates processing aligned with "templates-base" 2.1.1: allow template fields with the same name the attribute code of the curent object. SVN:trunk[3097] --- portal/index.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/portal/index.php b/portal/index.php index 8bcf85898..f598820ac 100644 --- a/portal/index.php +++ b/portal/index.php @@ -526,17 +526,14 @@ function RequestCreationForm($oP, $oUserOrg, $iSvcId = null, $iSubSvcId = null, { foreach ($aTemplateFields as $sAttCode => $oField) { - if (!in_array($sAttCode, $aList)) + $sValue = $oField->GetFormElement($oP, $sClass); + if ($oField->Get('input_type') == 'hidden') { - $sValue = $oField->GetFormElement($oP, $sClass); - if ($oField->Get('input_type') == 'hidden') - { - $aHidden[] = $sValue; - } - else - { - $aDetails[] = array('label' => $oField->GetAsHTML('label'), 'value' => $sValue); - } + $aHidden[] = $sValue; + } + else + { + $aDetails[] = array('label' => $oField->GetAsHTML('label'), 'value' => $sValue); } } }