Custom fields: solidified the internal APIs against creative usages (null =>default value)

SVN:trunk[4248]
This commit is contained in:
Romain Quetiez
2016-06-22 14:12:53 +00:00
parent 218a2e2f01
commit 31a375f640

View File

@@ -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));
}