]> 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:20:17 +0000 (13:20 +0200)
ipf/admin/model.php

index a0c069b4a1c1407d7b0a04787f171f1b13913176..7054f48dfbab724347e6ae5f83d6ce8e0751f616 100644 (file)
@@ -851,7 +851,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();