Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Sep 27, 2023
1 parent ad14849 commit 69ff49d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/Notifications/Widget/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ protected function assembleCalendar(Calendar $calendar): void
['schedule' => $this->schedule->id]
));

$members = $this->schedule->member->with(['timeperiod', 'contact', 'contactgroup']);
$members = $this->schedule->member
->with(['timeperiod', 'contact', 'contactgroup'])
->orderBy(['schedule_id', 'timeperiod_id']);

foreach ($members as $member) {
if ($member->contact_id !== null) {
$attendee = new Attendee($member->contact->full_name);
Expand Down

0 comments on commit 69ff49d

Please sign in to comment.