fixed bug in day-view with multiple users: sometimes wrong owner/participants were set for new events

This commit is contained in:
Ralf Becker 2006-03-16 18:13:37 +00:00
parent 6ca6cdcfa9
commit c30e0699c3

View File

@ -406,14 +406,14 @@ class uiviews extends uical
}
else
{
$dayEvents = array();
$dayEvents = $owner = array();
$search_params = $this->search_params;
foreach($this->_get_planner_users(false) as $uid => $label)
{
$search_params['users'] = $uid;
list(,$dayEvents['<b>'.$label.'</b>']) = each($this->bo->search($search_params));
$owner[] = $uid;
}
$owner = $users;
}
$cols = array();
$cols[0] =& $this->timeGridWidget($dayEvents,$this->cal_prefs['interval'],450,'','',$owner);