Minor - Undo change default table direction order

f6b80af797
pull/3725/head
Julio Montoya 5 years ago
parent 2851bea63c
commit b33e80a8ce
  1. 3
      main/inc/lib/SortableTableFromArray.php
  2. 3
      main/inc/lib/sortable_table.class.php

@ -38,8 +38,7 @@ class SortableTableFromArray extends SortableTable
$default_column,
$default_items_per_page,
null,
$tableId,
null
$tableId
);
$this->table_data = $table_data;
$this->handlePagination = false;

@ -223,8 +223,6 @@ class SortableTable extends HTML_Table
$this->direction = 'DESC';
}
}
} else {
$this->direction = 'ASC';
}
Session::write($this->param_prefix.'per_page', $this->per_page);
@ -1143,6 +1141,7 @@ class SortableTable extends HTML_Table
) {
$data = [];
if (null !== $this->get_data_function) {
var_dump($this->direction);
$data = call_user_func(
$this->get_data_function,
$from,

Loading…
Cancel
Save