Skip to content

Commit

Permalink
Course: Fix default sort order in the tracking menu - refs GH#3510
Browse files Browse the repository at this point in the history
  • Loading branch information
lcubas committed Nov 17, 2020
1 parent ee89874 commit f6b80af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/inc/lib/SortableTableFromArray.php
Expand Up @@ -38,7 +38,8 @@ public function __construct(
$default_column,
$default_items_per_page,
null,
$tableId
$tableId,
null
);
$this->table_data = $table_data;
$this->handlePagination = false;
Expand Down
2 changes: 2 additions & 0 deletions main/inc/lib/sortable_table.class.php
Expand Up @@ -223,6 +223,8 @@ public function __construct(
$this->direction = 'DESC';
}
}
} else {
$this->direction = 'ASC';

This comment has been minimized.

Copy link
@jmontoyaa

jmontoyaa Dec 7, 2020

Member

This commit changes the default order of tables

https://task.beeznest.com/issues/18118#change-146332

This comment has been minimized.

Copy link
@jmontoyaa

jmontoyaa Dec 7, 2020

Member

I just undo this change with:

b33e80a

}

Session::write($this->param_prefix.'per_page', $this->per_page);
Expand Down

0 comments on commit f6b80af

Please sign in to comment.