#152 Data model consistency check reporting issues

SVN:trunk[824]
This commit is contained in:
Romain Quetiez
2010-09-12 08:43:48 +00:00
parent fe8ebc6c31
commit 384c8c8ba9

View File

@@ -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