re-enable/fix sortable tablelisting flag
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -113,17 +113,15 @@ class Collection
|
||||
public function withPagination(array $columns, array $default_sorting = []): Collection
|
||||
{
|
||||
// Get only searchable columns
|
||||
/*
|
||||
$sortableColumns = [];
|
||||
foreach ($columns as $key => $column) {
|
||||
if (isset($column['sortable']) && $column['sortable']) {
|
||||
if (!isset($column['sortable']) || (isset($column['sortable']) && $column['sortable'])) {
|
||||
$sortableColumns[$key] = $column;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// Prepare pagination
|
||||
$this->pagination = new Pagination($columns, $this->count(), (int)Settings::Get('panel.paging'), $default_sorting);
|
||||
$this->pagination = new Pagination($sortableColumns, $this->count(), (int)Settings::Get('panel.paging'), $default_sorting);
|
||||
$this->params = array_merge($this->params, $this->pagination->getApiCommandParams());
|
||||
|
||||
return $this;
|
||||
|
||||
@@ -54,11 +54,13 @@ return [
|
||||
'label' => lng('ssl_certificates.valid_from'),
|
||||
'field' => 'validfromdate',
|
||||
'searchable' => false,
|
||||
'sortable' => false,
|
||||
],
|
||||
'c.validtodate' => [
|
||||
'label' => lng('ssl_certificates.valid_until'),
|
||||
'field' => 'validtodate',
|
||||
'searchable' => false,
|
||||
'sortable' => false,
|
||||
],
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('sslcertificates_list', [
|
||||
|
||||
Reference in New Issue
Block a user