Don't remove properties from exceptions which are equal to the master event. KE17 says:
A recurrence exception SHALL copy ALL properties of the base event, and adjust as required, and it SHALL NOT be applied on top of the orginial event properties (The exception replaces the complete original event definition for the specific occurrence).
This commit is contained in:
parent
fe64e05e48
commit
6a5a814834
1 changed files with 0 additions and 7 deletions
|
@ -241,7 +241,6 @@ class kolab_format_event extends kolab_format_xcal
|
|||
private function compact_exception($exception, $master)
|
||||
{
|
||||
$forbidden = array('recurrence','organizer','_attachments');
|
||||
$whitelist = array('start','end');
|
||||
|
||||
foreach ($forbidden as $prop) {
|
||||
if (array_key_exists($prop, $exception)) {
|
||||
|
@ -249,12 +248,6 @@ class kolab_format_event extends kolab_format_xcal
|
|||
}
|
||||
}
|
||||
|
||||
foreach ($master as $prop => $value) {
|
||||
if (isset($exception[$prop]) && gettype($exception[$prop]) == gettype($value) && $exception[$prop] == $value && !in_array($prop, $whitelist)) {
|
||||
unset($exception[$prop]);
|
||||
}
|
||||
}
|
||||
|
||||
// preserve this property for date serialization
|
||||
$exception['allday'] = $master['allday'];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue