mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
This loads up alarms for both the event and any references (events that have been created as a modified event from a repeating event).
This commit is contained in:
parent
bc9ae2fa70
commit
406baf80e4
@ -198,7 +198,16 @@ class socalendar_ extends socalendar__
|
||||
}
|
||||
}
|
||||
|
||||
$this->stream->query('SELECT * FROM phpgw_cal_alarm WHERE cal_id='.$event_id.' AND cal_owner='.$this->user,__LINE__,__FILE__);
|
||||
if($this->event['reference'])
|
||||
{
|
||||
$alarm_cal_id = $event_id.','.$this->event['reference'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$alarm_cal_id = $event_id;
|
||||
}
|
||||
|
||||
$this->stream->query('SELECT * FROM phpgw_cal_alarm WHERE cal_id in ('.$alarm_cal_id.') AND cal_owner='.$this->user,__LINE__,__FILE__);
|
||||
if($this->stream->num_rows())
|
||||
{
|
||||
while($this->stream->next_record())
|
||||
|
Loading…
Reference in New Issue
Block a user