forked from extern/egroupware
using maximum of cal_modified and cal_user_modified for iCal LAST-MODIFIED too
This commit is contained in:
parent
5e132c5a53
commit
b599d4a4e2
@ -848,7 +848,11 @@ class calendar_ical extends calendar_boupdate
|
||||
{
|
||||
$attributes['CREATED'] = $event['created'] ? $event['created'] : $event['modified'];
|
||||
}
|
||||
if ($event['modified'])
|
||||
if ($event['max_user_modified'])
|
||||
{
|
||||
$attributes['LAST-MODIFIED'] = max($event['modified'], $event['max_user_modified']);
|
||||
}
|
||||
elseif ($event['modified'])
|
||||
{
|
||||
$attributes['LAST-MODIFIED'] = $event['modified'];
|
||||
}
|
||||
|
@ -241,6 +241,11 @@ class calendar_so
|
||||
|
||||
$events[$row['cal_id']]['participants'][$uid] = $status;
|
||||
$events[$row['cal_id']]['participant_types'][$row['cal_user_type']][$row['cal_user_id']] = $status;
|
||||
|
||||
if (($modified = $this->db->from_timestamp($row['cal_user_modified'])) > $events[$row['cal_id']]['max_user_modified'])
|
||||
{
|
||||
$events[$row['cal_id']]['max_user_modified'] = $modified;
|
||||
}
|
||||
}
|
||||
|
||||
// custom fields
|
||||
|
Loading…
Reference in New Issue
Block a user