[icinga-checkins] icinga.org: icingaweb2-module-director/master: ShowController: remove legacy 'disabled' check

git at icinga.org git at icinga.org
Mon Jun 27 09:17:10 CEST 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Jun 26 16:34:36 2016 +0200

ShowController: remove legacy 'disabled' check

---

 application/controllers/ShowController.php |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/application/controllers/ShowController.php b/application/controllers/ShowController.php
index 7b7439c..d5d0ec4 100644
--- a/application/controllers/ShowController.php
+++ b/application/controllers/ShowController.php
@@ -80,11 +80,6 @@ class ShowController extends ActionController
         $old = $this->oldObject($entry);
         $new = $this->newObject($entry);
 
-        if ($old->disabled === 'y' && $new->disabled === 'n') {
-            $old = null;
-        } elseif ($old->disabled === 'n' && $new->disabled === 'y') {
-            $new = null;
-        }
         $d = ConfigDiff::create(
             $old,
             $new



More information about the icinga-checkins mailing list