From c795db53134d9746a9e2dfd9890f9071acd0e212 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 11 Dec 2019 13:38:29 +0100 Subject: [PATCH] History: Add sort control --- application/controllers/HistoryController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/controllers/HistoryController.php b/application/controllers/HistoryController.php index bd2adeec..02bdb224 100644 --- a/application/controllers/HistoryController.php +++ b/application/controllers/HistoryController.php @@ -29,6 +29,12 @@ class HistoryController extends Controller $limitControl = $this->createLimitControl(); $paginationControl = $this->createPaginationControl($history); + $sortControl = $this->createSortControl( + $history, + [ + 'history.event_time desc' => $this->translate('Event Time') + ] + ); $filterControl = $this->createFilterControl($history); $this->filter($history); @@ -36,6 +42,7 @@ class HistoryController extends Controller yield $this->export($history); $this->addControl($paginationControl); + $this->addControl($sortControl); $this->addControl($limitControl); $this->addControl($filterControl);