mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DirectorObjectForm: lazy relations only for Icinga
This commit is contained in:
parent
f2d9e1a544
commit
572ac3ad4c
@ -157,6 +157,12 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
foreach ($values as $key => $value) {
|
||||
try {
|
||||
$object->set($key, $value);
|
||||
if ($key === 'imports') {
|
||||
$object->importedObjects();
|
||||
} elseif ($object instanceof IcingaObject) {
|
||||
$object->resolveUnresolvedRelatedProperties();
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
$this->getElement($key)->addError($e->getMessage());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user