Downtime: Use and adjust getDefaultSort() in favor of removed getSortRules()

This commit is contained in:
Eric Lippmann 2019-12-11 15:58:53 +01:00
parent e01ce7e38a
commit c428c33ebd

View file

@ -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)