[icinga-checkins] icinga.org: icingaweb2-module-director/master: DirectorObjectForm: fix object type case on redirect

git at icinga.org git at icinga.org
Thu Feb 4 17:00:00 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 31b0e7a180deab4c94890e5e7ef32ec359f64dc8
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=31b0e7a180deab4c94890e5e7ef32ec359f64dc8

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Feb  4 16:59:38 2016 +0100

DirectorObjectForm: fix object type case on redirect

---

 library/Director/Web/Form/DirectorObjectForm.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php
index 623970b..078eb55 100644
--- a/library/Director/Web/Form/DirectorObjectForm.php
+++ b/library/Director/Web/Form/DirectorObjectForm.php
@@ -668,7 +668,7 @@ abstract class DirectorObjectForm extends QuickForm
         if ($object->delete()) {
             // fields? $this->setSuccessUrl($this->getSuccessUrl()->without($key));
             if ($object instanceof IcingaObject && $object->hasProperty('object_name')) {
-                $this->setSuccessUrl('director/' . $object->getShortTableName() . 's');
+                $this->setSuccessUrl('director/' . strtolower($object->getShortTableName()) . 's');
             } else {
                 $this->setSuccessUrl($this->getSuccessUrl()->without(
                     array('field_id', 'argument_id')



More information about the icinga-checkins mailing list