diff options
Diffstat (limited to 'app/controllers/calendar')
| -rw-r--r-- | app/controllers/calendar/date.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/calendar/date.php b/app/controllers/calendar/date.php index 8b8435e..32cf99c 100644 --- a/app/controllers/calendar/date.php +++ b/app/controllers/calendar/date.php @@ -130,6 +130,7 @@ class Calendar_DateController extends AuthenticatedController ['calendar_date_id' => $this->date->id] ); $this->participation_message = null; + $this->user_participation_status = ''; $this->all_assignments_writable = false; $this->is_group_date = count($this->calendar_assignments) > 1; @@ -140,6 +141,7 @@ class Calendar_DateController extends AuthenticatedController //according to the participation status. foreach ($this->calendar_assignments as $index => $assignment) { if ($assignment->range_id === $GLOBALS['user']->id && $this->is_group_date) { + $this->user_participation_status = $assignment->participation; if ($assignment->participation === 'ACCEPTED') { $this->participation_message = MessageBox::info(_('Sie nehmen am Termin teil.')); } elseif ($assignment->participation === 'DECLINED') { |
