Browse Source

#152 Data model consistency check reporting issues

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@824 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 năm trước cách đây
mục cha
commit
7b06094e40
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/attributedef.class.inc.php

+ 1 - 1
core/attributedef.class.inc.php

@@ -740,7 +740,7 @@ class AttributeClass extends AttributeString
 	public function GetDefaultValue()
 	{
 		$sDefault = parent::GetDefaultValue();
-		if (!$this->IsNullAllowed() && is_null($sDefault))
+		if (!$this->IsNullAllowed() && $this->IsNull($sDefault))
 		{
 			// For this kind of attribute specifying null as default value
 			// is authorized even if null is not allowed