소스 검색

#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 년 전
부모
커밋
7b06094e40
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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