mirror of
https://github.com/chylex/Lightning-Tracker.git
synced 2025-03-13 00:15:44 +01:00
Fix broken default table sorting rules
This commit is contained in:
parent
0b2541bfbe
commit
35b58d958f
@ -137,7 +137,7 @@ abstract class AbstractFilter{
|
||||
|
||||
protected function generateOrderByClause(): string{
|
||||
$cols = [];
|
||||
$rules = $this->sorting === null ? $this->getDefaultOrderByColumns() : $this->sorting->getRules();
|
||||
$rules = $this->sorting === null || $this->sorting->isEmpty() ? $this->getDefaultOrderByColumns() : $this->sorting->getRules();
|
||||
|
||||
foreach($rules as $field => $direction){
|
||||
if (!$direction){
|
||||
|
Loading…
Reference in New Issue
Block a user