fix for bug #304: Notification for participants sends wrong date for recurring events

This commit is contained in:
Christian Binder 2007-02-07 13:51:07 +00:00
parent ca398c82e2
commit 15280f17a0
2 changed files with 2 additions and 1 deletions

View File

@ -780,6 +780,7 @@ class bocalupdate extends bocal
if (isset($status2msg[$status]))
{
if (!is_array($event)) $event = $this->read($cal_id);
if (isset($recur_date)) $event = $this->read($event['id'],$recur_date); //re-read the actually edited recurring event
$this->send_update($status2msg[$status],$event['participants'],$event);
}
}

View File

@ -289,7 +289,7 @@ class uiforms extends uical
}
if ($data['old_status'] != $status)
{
if ($this->bo->set_status($event['id'],$uid,$status,$event['recur_type'] != MCAL_RECUR_NONE ? $event['start'] : 0))
if ($this->bo->set_status($event['id'],$uid,$status,$event['recur_type'] != MCAL_RECUR_NONE ? $content['participants']['status_date'] : 0))
{
// refreshing the calendar-view with the changed participant-status
$msg = lang('Status changed');