[icinga-checkins] icinga.org: icingaweb2/master: FilterChain: addFilter should return itself

git at icinga.org git at icinga.org
Sun Nov 16 02:49:51 CET 2014


Module: icingaweb2
Branch: master
Commit: 9e0e3f12e3a0c6aa1d22451d54c4fd4b39cbf8ba
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=9e0e3f12e3a0c6aa1d22451d54c4fd4b39cbf8ba

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Nov 16 02:49:33 2014 +0100

FilterChain: addFilter should return itself

---

 library/Icinga/Data/Filter/FilterChain.php |    1 +
 library/Icinga/Web/Widget/FilterEditor.php |    1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Data/Filter/FilterChain.php b/library/Icinga/Data/Filter/FilterChain.php
index e86f6fe..76c56a7 100644
--- a/library/Icinga/Data/Filter/FilterChain.php
+++ b/library/Icinga/Data/Filter/FilterChain.php
@@ -185,6 +185,7 @@ abstract class FilterChain extends Filter
     {
         $this->filters[] = $filter;
         $filter->setId($this->getId() . '-' . $this->count());
+        return $this;
     }
 
     public function &filters()
diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php
index ee7a6c6..3721e48 100644
--- a/library/Icinga/Web/Widget/FilterEditor.php
+++ b/library/Icinga/Web/Widget/FilterEditor.php
@@ -196,7 +196,6 @@ class FilterEditor extends AbstractWidget
                 $filter = $this->mergeRootExpression($filter, $k, '=', $v);
             }
 
-
             $url = $this->url()->setQueryString(
                 $filter->toQueryString()
             )->addParams($preserve);



More information about the icinga-checkins mailing list