DirectorDataField: preserve settings in fromDbRow

refs #13259
This commit is contained in:
Thomas Gelf 2016-12-13 17:14:58 +01:00
parent 9790c1ab43
commit 04f9b360da

View File

@ -38,9 +38,14 @@ class DirectorDatafield extends DbObjectWithSettings
// TODO: $obj->setUnmodified();
$obj->hasBeenModified = false;
$obj->modifiedProperties = array();
$settings = $obj->getSettings();
// TODO: eventually prefetch
$obj->onLoadFromDb();
// Restoring values eventually destroyed by onLoadFromDb
foreach ($settings as $key => $value) {
$obj->settings[$key] = $value;
}
return $obj;
}