mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
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:
@@ -526,17 +526,14 @@ function RequestCreationForm($oP, $oUserOrg, $iSvcId = null, $iSubSvcId = null,
|
|||||||
{
|
{
|
||||||
foreach ($aTemplateFields as $sAttCode => $oField)
|
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);
|
$aHidden[] = $sValue;
|
||||||
if ($oField->Get('input_type') == 'hidden')
|
}
|
||||||
{
|
else
|
||||||
$aHidden[] = $sValue;
|
{
|
||||||
}
|
$aDetails[] = array('label' => $oField->GetAsHTML('label'), 'value' => $sValue);
|
||||||
else
|
|
||||||
{
|
|
||||||
$aDetails[] = array('label' => $oField->GetAsHTML('label'), 'value' => $sValue);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user