[icinga-checkins] icinga.org: icingaweb2-module-director/master: DirectorObjectForm: skip timeperiod range params...

git at icinga.org git at icinga.org
Thu Aug 4 20:30:26 CEST 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Aug  4 18:29:18 2016 +0000

DirectorObjectForm: skip timeperiod range params...

...on redirect after removal. TimeperiodRange::getOnDeleteUrl would
be a better place for this, but I do not like that solution either :p

fixes #12316

---

 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 ab3d9e5..e7ded33 100644
--- a/library/Director/Web/Form/DirectorObjectForm.php
+++ b/library/Director/Web/Form/DirectorObjectForm.php
@@ -868,7 +868,7 @@ abstract class DirectorObjectForm extends QuickForm
             $url = $object->getOnDeleteUrl();
         } else {
             $url = $this->getSuccessUrl()->without(
-                array('field_id', 'argument_id')
+                array('field_id', 'argument_id', 'range', 'range_type')
             );
         }
 



More information about the icinga-checkins mailing list