From: Andrey Kutejko Date: Fri, 16 Aug 2013 04:57:25 +0000 (+0300) Subject: admin fix filter queries X-Git-Tag: 0.5~57 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=383271822195181317672286bc9f7bb011df5281;p=ipf.git admin fix filter queries --- 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;