mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
Fix update did not always go to correct calendar
This commit is contained in:
parent
adb64aa0b8
commit
fb7ec13d77
@ -272,13 +272,14 @@ app.classes.calendar = AppJS.extend(
|
|||||||
var new_cache_id = app.classes.calendar._daywise_cache_id(event.data.date, owner)
|
var new_cache_id = app.classes.calendar._daywise_cache_id(event.data.date, owner)
|
||||||
var daywise = egw.dataGetUIDdata(new_cache_id);
|
var daywise = egw.dataGetUIDdata(new_cache_id);
|
||||||
daywise = daywise ? daywise.data : [];
|
daywise = daywise ? daywise.data : [];
|
||||||
if(_type === 'delete' ||
|
if(daywise.indexOf(_id) >= 0 && (_type === 'delete' ||
|
||||||
// Make sure we only update the calendars of those actually in the event
|
// Make sure we only update the calendars of those actually in the event
|
||||||
multiple_owner && typeof event.data.participants[owner] == 'undefined')
|
multiple_owner && typeof event.data.participants[owner] == 'undefined'))
|
||||||
{
|
{
|
||||||
daywise.splice(daywise.indexOf(_id),1);
|
daywise.splice(daywise.indexOf(_id),1);
|
||||||
}
|
}
|
||||||
else if (daywise.indexOf(_id) < 0)
|
else if (daywise.indexOf(_id) < 0 && (
|
||||||
|
!multiple_owner || typeof event.data.participants[owner] !== 'undefined'))
|
||||||
{
|
{
|
||||||
daywise.push(_id);
|
daywise.push(_id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user