Skip to content

Commit

Permalink
Fixed sorting bug on reminders subpage
Browse files Browse the repository at this point in the history
  • Loading branch information
spitfire305 committed Dec 7, 2023
1 parent fd53b32 commit dd9620a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Entity/ReminderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
1 change: 1 addition & 0 deletions app/Models/EntityEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class EntityEvent extends MiscModel
'date',
'is_recurring',
'visibility_id',
'comment'
];

/** @var int Last occurence of the reminder */
Expand Down

0 comments on commit dd9620a

Please sign in to comment.