mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Merge pull request #3209 from Deltik/fix-3204
Disable tree format if model has filters
This commit is contained in:
@@ -4314,6 +4314,11 @@ class e_admin_controller_ui extends e_admin_controller
|
||||
// add more where details on the fly via $this->listQrySql['db_where'];
|
||||
$qry .= (strripos($qry, 'where')==FALSE) ? " WHERE " : " AND "; // Allow 'where' in custom listqry
|
||||
$qry .= implode(" AND ", $searchQry);
|
||||
|
||||
// Disable tree (use flat list instead) when filters are applied
|
||||
// Implemented out of necessity under https://github.com/e107inc/e107/issues/3204
|
||||
// Horrible hack, but only needs this one line of additional code
|
||||
$this->getTreeModel()->setParam('sort_parent', null);
|
||||
}
|
||||
|
||||
// GROUP BY if needed
|
||||
|
Reference in New Issue
Block a user