Explorar o código

#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 %!s(int64=14) %!d(string=hai) anos
pai
achega
7b06094e40
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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