فهرست منبع

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3097 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 سال پیش
والد
کامیت
9c9e1cdd32
1فایلهای تغییر یافته به همراه7 افزوده شده و 10 حذف شده
  1. 7 10
      portal/index.php

+ 7 - 10
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);
 				}
 			}
 		}