mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user