* Compatible $orderBy has no '_' problem.
This commit is contained in:
@@ -493,7 +493,7 @@ function initPageEntity(object $object): array
|
||||
*/
|
||||
function initTableData(array $items, array &$fieldList, object $model = null): array
|
||||
{
|
||||
if(!empty($_GET['orderBy'])) list($orderField, $orderVaule) = explode('_', $_GET['orderBy']);
|
||||
if(!empty($_GET['orderBy']) && strpos($_GET['orderBy'], '-') !== false) list($orderField, $orderVaule) = explode('_', $_GET['orderBy']);
|
||||
if(!empty($orderField) && !empty($orderVaule) && !empty($fieldList[$orderField]))
|
||||
{
|
||||
$sortType = false;
|
||||
|
||||
Reference in New Issue
Block a user