mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Convert alert-schedule to new style
Improved sorting customization
This commit is contained in:
@@ -32,7 +32,17 @@ use Illuminate\Http\Request;
|
||||
|
||||
abstract class TableController extends PaginatedAjaxController
|
||||
{
|
||||
protected $default_sort = [];
|
||||
protected $model;
|
||||
|
||||
protected function sortFields($request)
|
||||
{
|
||||
if (isset($this->model)) {
|
||||
$fields = \Schema::getColumnListing((new $this->model)->getTable());
|
||||
return array_combine($fields, $fields);
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
final protected function baseRules()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user