From aeff535454cf7526e4bf581107401df341762e7f Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 11 Dec 2019 15:58:53 +0100 Subject: [PATCH] NotificationHistory: Use and adjust getDefaultSort() in favor of removed getSortRules() --- library/Icingadb/Model/NotificationHistory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icingadb/Model/NotificationHistory.php b/library/Icingadb/Model/NotificationHistory.php index 9901b7a8..ec656b65 100644 --- a/library/Icingadb/Model/NotificationHistory.php +++ b/library/Icingadb/Model/NotificationHistory.php @@ -39,9 +39,9 @@ class NotificationHistory extends Model ]; } - public function getSortRules() + public function getDefaultSort() { - return ['send_time DESC']; + return 'send_time desc'; } public function createBehaviors(Behaviors $behaviors)