mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DirectorDataFieldForm: make sure object exists...
...even when an exception occurs
This commit is contained in:
parent
180fc2ccfa
commit
373d01ad64
@ -181,8 +181,8 @@ class DirectorDatafieldForm extends DirectorObjectForm
|
||||
$this->getElement('datatype')->addError($error);
|
||||
}
|
||||
|
||||
$object = $this->object();
|
||||
try {
|
||||
$object = $this->object();
|
||||
if ($class = $this->getSentValue('datatype')) {
|
||||
if ($class && array_key_exists($class, $types)) {
|
||||
$this->addSettings($class);
|
||||
|
Loading…
x
Reference in New Issue
Block a user