DirectorObjectForm: fix redirect for related objects
CommandArguments and similar are also IcingaObjects, but have no object_name
This commit is contained in:
parent
dbe61f3911
commit
49f28b27ef
|
@ -391,7 +391,7 @@ abstract class DirectorObjectForm extends QuickForm
|
|||
$object = $this->object();
|
||||
if ($object->hasBeenModified()) {
|
||||
if (! $object->hasBeenLoadedFromDb()) {
|
||||
if ($object instanceof IcingaObject) {
|
||||
if ($object instanceof IcingaObject && $object->hasProperty('object_name')) {
|
||||
$this->setSuccessUrl(
|
||||
'director/' . strtolower($this->getObjectName()),
|
||||
array('name' => $object->object_name)
|
||||
|
|
Loading…
Reference in New Issue