瀏覽代碼

Portal : Deadline attributes not displayed properly in ManageBrick

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4431 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 8 年之前
父節點
當前提交
4ad71594d8

+ 6 - 1
datamodels/2.x/itop-portal-base/portal/src/controllers/managebrickcontroller.class.inc.php

@@ -28,6 +28,7 @@ use \MetaModel;
 use \AttributeDefinition;
 use \AttributeDate;
 use \AttributeDateTime;
+use \AttributeSubItem;
 use \DBSearch;
 use \DBObjectSearch;
 use \DBObjectSet;
@@ -389,7 +390,7 @@ class ManageBrickController extends BrickController
 							);
 						}
 					}
-
+					
 					$oAttDef = MetaModel::GetAttributeDef($sCurrentClass, $sItemAttr);
 					if ($oAttDef->IsExternalKey())
 					{
@@ -409,6 +410,10 @@ class ManageBrickController extends BrickController
 							}
 						}
 					}
+					elseif ($oAttDef instanceof AttributeSubItem)
+					{
+						$sValue = $oAttDef->GetAsHTML($oCurrentRow->Get($sItemAttr));
+					}
 					else
 					{
 						$sValue = $oAttDef->GetValueLabel($oCurrentRow->Get($sItemAttr));