Pārlūkot izejas kodu

#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 gadi atpakaļ
vecāks
revīzija
7b06094e40
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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