mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Custom fields: solidified the internal APIs against creative usages (null =>default value)
SVN:trunk[4248]
This commit is contained in:
@@ -6968,6 +6968,10 @@ class AttributeCustomFields extends AttributeDefinition
|
||||
{
|
||||
return new ormCustomFieldsValue($oHostObject, $this->GetCode(), $proposedValue);
|
||||
}
|
||||
elseif (is_null($proposedValue))
|
||||
{
|
||||
return new ormCustomFieldsValue($oHostObject, $this->GetCode());
|
||||
}
|
||||
throw new Exception('Unexpected type for the value of a custom fields attribute: '.gettype($proposedValue));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user