QuickTable: Fix enforced filters for non-FilterAnd filters

We need to use the result of andFilter() as the new Filter.

The filter gets replaced by FilterAnd($oldFilter, $enforcedFilter) here.
This commit is contained in:
Markus Frosch 2017-06-02 14:57:10 +02:00 committed by Thomas Gelf
parent 1c028801bc
commit fa61805df2

View File

@ -195,7 +195,7 @@ abstract class QuickTable implements Paginatable
}
if ($filter) {
foreach ($enforced as $f) {
$filter->andFilter($f);
$filter = $filter->andFilter($f);
}
$query->where($this->renderFilter($filter));
}