Bläddra i källkod

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 år sedan
förälder
incheckning
8a25adea2d
1 ändrade filer med 2 tillägg och 0 borttagningar
  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)
 	public function GetAsHTML($sValue)
 	{
 	{
+		if (empty($sValue)) return '';
 		return MetaModel::GetName($sValue);
 		return MetaModel::GetName($sValue);
 	}
 	}
 
 
@@ -822,6 +823,7 @@ class AttributeFinalClass extends AttributeString
 
 
 	public function GetAsHTML($sValue)
 	public function GetAsHTML($sValue)
 	{
 	{
+		if (empty($sValue)) return '';
 		return MetaModel::GetName($sValue);
 		return MetaModel::GetName($sValue);
 	}
 	}
 }
 }