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