From 8da2991e76ad7c3a8c40751adbef8f9243baaa79 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 7 Mar 2016 13:41:30 +0100 Subject: [PATCH] DirectorObjectForm: object knows redirect params --- library/Director/Web/Form/DirectorObjectForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index af015f14..61bcb0d3 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -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() ); }