diff --git a/app/Http/Controllers/Entity/ReminderController.php b/app/Http/Controllers/Entity/ReminderController.php index c893537421..49598a2ddc 100644 --- a/app/Http/Controllers/Entity/ReminderController.php +++ b/app/Http/Controllers/Entity/ReminderController.php @@ -54,6 +54,7 @@ public function index(Campaign $campaign, Entity $entity) ->has('calendar') ->has('calendar.entity') ->with(['calendar', 'calendar.entity', 'entity']) + ->sort(request()->only(['o', 'k'])) ->paginate(); if (request()->ajax()) { diff --git a/app/Models/EntityEvent.php b/app/Models/EntityEvent.php index 917a17453e..51f0c0f7bf 100644 --- a/app/Models/EntityEvent.php +++ b/app/Models/EntityEvent.php @@ -71,6 +71,7 @@ class EntityEvent extends MiscModel 'date', 'is_recurring', 'visibility_id', + 'comment' ]; /** @var int Last occurence of the reminder */