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:
skeeter 2001-10-27 12:59:06 +00:00
parent bc9ae2fa70
commit 406baf80e4

View File

@ -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())