mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
parent
9790c1ab43
commit
04f9b360da
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user