Merge pull request #3990 from kinglozzer/patch-1

Remove redundant config logic from DataObject::setField()
This commit is contained in:
Daniel Hensby 2015-03-09 21:09:23 +00:00
commit 95deae8a69

View File

@ -2321,7 +2321,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
user_error('DataObject::setField: passed an object that is not a DBField', E_USER_WARNING);
}
$defaults = $this->stat('defaults');
// if a field is not existing or has strictly changed
if(!isset($this->record[$fieldName]) || $this->record[$fieldName] !== $val) {
// TODO Add check for php-level defaults which are not set in the db