mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-22 09:40:23 -05:00
Use the $sort_direction variable to determine the orderBy direction so setting $dashboard_reorder to true will always use 'desc'
This commit is contained in:
parent
eb69d2fbd7
commit
734268c1dd
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class DashboardModel extends Model
|
|||
public static function getDashboardData()
|
||||
{
|
||||
$sort_direction = static::$dashboard_reorder ? 'desc' : static::$dashboard_sort_direction;
|
||||
$query = self::orderBy(static::$dashboard_sort_column, 'desc');
|
||||
$query = self::orderBy(static::$dashboard_sort_column, $sort_direction);
|
||||
|
||||
foreach (static::$dashboard_columns as $column) {
|
||||
if (array_key_exists('type', $column) && $column['type'] == 'user') {
|
||||
|
|
Loading…
Reference in a new issue