mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Possible fixes for status not displaying on view.php
This commit is contained in:
parent
ddecf65549
commit
c214e83a93
@ -183,6 +183,7 @@
|
||||
$participants[] = $parts[0];
|
||||
}
|
||||
|
||||
reset($participants);
|
||||
$phpgw->calendar->event_set_participants($cal_stream,$participants);
|
||||
|
||||
$phpgw->calendar->event->priority = intval($priority);
|
||||
|
@ -427,6 +427,11 @@ class calendar_ extends calendar__
|
||||
}
|
||||
else
|
||||
{
|
||||
$part_count = count($this->event->participants);
|
||||
for($i=0;$i<$part_count;$i++)
|
||||
{
|
||||
$this->event->status[$i] = 'U';
|
||||
}
|
||||
$this->send_update(MSG_ADDED,$this->event->participants,'',$this->event);
|
||||
}
|
||||
return $this->save_event($this->event);
|
||||
@ -878,18 +883,18 @@ class calendar_ extends calendar__
|
||||
$this->stream->query('DELETE FROM calendar_entry_user WHERE cal_id='.$event->id,__LINE__,__FILE__);
|
||||
|
||||
reset($event->participants);
|
||||
while ($participant = each($event->participants))
|
||||
while (list($key,$value) = each($event->participants))
|
||||
{
|
||||
if(intval($participant[1]) == intval($this->user))
|
||||
if(intval($value) == intval($this->user))
|
||||
{
|
||||
$status = 'A';
|
||||
}
|
||||
else
|
||||
{
|
||||
$status = $event->status[$participant[0]];
|
||||
$status = $event->status[$key];
|
||||
}
|
||||
$this->stream->query('INSERT INTO calendar_entry_user(cal_id,cal_login,cal_status) '
|
||||
. 'VALUES('.$event->id.','.$participant[1].",'".$status."')",__LINE__,__FILE__);
|
||||
. 'VALUES('.$event->id.','.$value.",'".$status."')",__LINE__,__FILE__);
|
||||
}
|
||||
|
||||
if($event->recur_type != RECUR_NONE)
|
||||
|
Loading…
Reference in New Issue
Block a user