diff --git a/models/GenericTable.php b/models/GenericTable.php index a5535c7..b63df32 100644 --- a/models/GenericTable.php +++ b/models/GenericTable.php @@ -15,7 +15,6 @@ class GenericTable private $title; private $title_class; - private $tableIsSortable = false; public $form_above; public $form_below; @@ -37,9 +36,6 @@ class GenericTable if (!empty($options['sort_direction']) && !in_array($options['sort_direction'], ['up', 'down'])) $options['sort_direction'] = 'up'; - // Make sure we know whether we can actually sort on something. - $this->tableIsSortable = !empty($options['base_url']); - // How much data do we have? $this->recordCount = $options['get_count'](); @@ -100,7 +96,7 @@ class GenericTable if (empty($column['header'])) continue; - $isSortable = $this->tableIsSortable && !empty($column['is_sortable']); + $isSortable = !empty($column['is_sortable']); $sortDirection = $key == $this->sort_order && $this->sort_direction === 'up' ? 'down' : 'up'; $header = [