FilterChain: addFilter should return itself

This commit is contained in:
Thomas Gelf 2014-11-16 02:49:33 +01:00
parent 387928de02
commit 9e0e3f12e3
2 changed files with 1 additions and 1 deletions

View File

@ -185,6 +185,7 @@ abstract class FilterChain extends Filter
{
$this->filters[] = $filter;
$filter->setId($this->getId() . '-' . $this->count());
return $this;
}
public function &filters()

View File

@ -196,7 +196,6 @@ class FilterEditor extends AbstractWidget
$filter = $this->mergeRootExpression($filter, $k, '=', $v);
}
$url = $this->url()->setQueryString(
$filter->toQueryString()
)->addParams($preserve);