소스 검색

Fixed isssue with final class recall, discovered when reintroducing the field Ticket::related_change_id

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@717 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 년 전
부모
커밋
8a25adea2d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/attributedef.class.inc.php

+ 2 - 0
core/attributedef.class.inc.php

@@ -745,6 +745,7 @@ class AttributeClass extends AttributeString
 
 	public function GetAsHTML($sValue)
 	{
+		if (empty($sValue)) return '';
 		return MetaModel::GetName($sValue);
 	}
 
@@ -822,6 +823,7 @@ class AttributeFinalClass extends AttributeString
 
 	public function GetAsHTML($sValue)
 	{
+		if (empty($sValue)) return '';
 		return MetaModel::GetName($sValue);
 	}
 }