Announcement : fix table pagination with wrong total number of items -refs BT#20325

pull/4449/head
NicoDucou 3 years ago
parent c69c790263
commit c4b22bd843
  1. 2
      main/inc/lib/SortableTableFromArray.php

@ -76,7 +76,7 @@ class SortableTableFromArray extends SortableTable
*/
public function get_total_number_of_items()
{
if (isset($this->total_number_of_items) && !empty($this->total_number_of_items)) {
if (isset($this->total_number_of_items) && !empty($this->total_number_of_items) && $this->total_number_of_items != -1) {
return $this->total_number_of_items;
} else {
if (!empty($this->table_data)) {

Loading…
Cancel
Save