DirectorObjectForm: object knows redirect params

This commit is contained in:
Thomas Gelf 2016-03-07 13:41:30 +01:00
parent 4974d1a850
commit 8da2991e76
1 changed files with 2 additions and 2 deletions

View File

@ -505,10 +505,10 @@ abstract class DirectorObjectForm extends QuickForm
}
$msg = $this->translate('No action taken, object has not been modified');
}
if ($object instanceof IcingaObject && $object->hasProperty('object_name')) {
if ($object instanceof IcingaObject) {
$this->setSuccessUrl(
'director/' . strtolower($this->getObjectName()),
array('name' => $object->object_name)
$object->getUrlParams()
);
}