From 384c8c8ba9d16618d0972810525e8e7123683eeb Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Sun, 12 Sep 2010 08:43:48 +0000 Subject: [PATCH] #152 Data model consistency check reporting issues SVN:trunk[824] --- core/attributedef.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 01bb7d801..b77887581 100644 --- a/core/attributedef.class.inc.php +++ b/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