make search-result links a filter/search for the overview instead of the direct edit-link; show number of total entries in overview; show 'back to overview' button when showing search-result
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -109,17 +109,24 @@ class Collection
|
||||
public function withPagination(array $columns): Collection
|
||||
{
|
||||
// Get only searchable columns
|
||||
/*
|
||||
$sortableColumns = [];
|
||||
foreach ($columns as $key => $column) {
|
||||
if (isset($column['sortable']) && $column['sortable']) {
|
||||
$sortableColumns[$key] = $column;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// Prepare pagination
|
||||
$this->pagination = new Pagination($sortableColumns, $this->count(), (int) Settings::Get('panel.paging'));
|
||||
$this->pagination = new Pagination($columns, $this->count(), (int) Settings::Get('panel.paging'));
|
||||
$this->params = array_merge($this->params, $this->pagination->getApiCommandParams());
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPagination(): ?Pagination
|
||||
{
|
||||
return $this->pagination;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user