1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 18:30:53 +02:00

Avoid possible error using batch with custom method. Extra flexibility to allow modifying of listQry with custom filter handler.

This commit is contained in:
Cameron
2019-05-13 12:30:42 -07:00
parent 5150d92fb5
commit 72a8476898

View File

@@ -2426,6 +2426,7 @@ class e_admin_controller_ui extends e_admin_controller
* @var array UI field data
*/
protected $listQry;
protected $pid;
@@ -2976,7 +2977,13 @@ class e_admin_controller_ui extends e_admin_controller
if($this->getAction() === 'list' || $this->getAction() === 'grid')
{
return $this->getListModel()->get($key);
$obj = $this->getListModel();
if(is_object($obj))
{
return $obj->get($key);
}
return null;
}
return $this->getModel()->get($key);
@@ -4078,10 +4085,13 @@ class e_admin_controller_ui extends e_admin_controller
$tableSJoinArr = array(); // FROM for join tables
$filter = array();
$this->listQry = $listQry;
$searchQuery = $this->fixSearchWildcards($tp->toDB($request->getQuery('searchquery', '')));
$searchFilter = $this->_parseFilterRequest($request->getQuery('filter_options', ''));
$listQry = $this->listQry; // check for modification during parseFilterRequest();
if(E107_DEBUG_LEVEL == E107_DBG_SQLQUERIES)
{
e107::getMessage()->addDebug('searchQuery: <b>'.$searchQuery.'</b>');