]> git.andy128k.dev Git - ipf.git/commitdiff
option for admin filtered search
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 1 Feb 2014 11:19:50 +0000 (13:19 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 1 Feb 2014 11:19:50 +0000 (13:19 +0200)
ipf/admin/model.php

index d39f99262c9d55b73f2fbb2e14315ccf13e4a858..66a13289b47c77d24f56c2bc3305ec9aeacb2299 100644 (file)
@@ -795,7 +795,8 @@ class IPF_Admin_Model
 
         $this->ListItemsQuery();
         $this->_GetFilters($request);
-        if (!$this->_ListSearchQuery($request))
+        $hasSearch = $this->_ListSearchQuery($request);
+        if (!$hasSearch || IPF::get('admin_filtered_search', false))
             $this->_ListFilterQuery($request);
         $this->ListItemsHeader();