Remove redundant config logic from DataObject::setField()

This commit is contained in:
Loz Calver 2015-03-09 12:51:08 +00:00
parent a77ca1995a
commit 747a794f86

View File

@ -2323,7 +2323,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