From 383271822195181317672286bc9f7bb011df5281 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Fri, 16 Aug 2013 07:57:25 +0300 Subject: [PATCH] admin fix filter queries --- ipf/admin/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipf/admin/model.php b/ipf/admin/model.php index 62a0a6c..a3318f1 100644 --- a/ipf/admin/model.php +++ b/ipf/admin/model.php @@ -42,7 +42,7 @@ class ListFilter extends BaseListFilter { if (isset($request->GET[$param_name])){ $id = $request->GET[$param_name]; if ($this->IsChoice($id)){ - $q->where($this->local.'='.$id); + $q->addWhere($this->local.'='.$id); } } } @@ -146,7 +146,7 @@ class ListTreeFilter extends BaseListFilter{ $dql .= ' AND '; $dql .= $w; } - $q->where($dql); + $q->addWhere($dql); } } } @@ -796,7 +796,7 @@ class IPF_Admin_Model $wh.= $f.' like ?'; $whv[] = '%'.$this->search_value.'%'; } - $this->q->where($wh,$whv); + $this->q->addWhere($wh,$whv); return true; } return false; -- 2.49.0