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