mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Calendar: fix update after delete does not show new events
Deleting the event caused a "hole" in daywise ID list, and trying to load that event's data failed.
This commit is contained in:
parent
bf2cb8818a
commit
70916b8fe3
@ -380,6 +380,10 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache
|
||||
{
|
||||
let event : any = egw.dataGetUIDdata('calendar::' + event_ids[i]);
|
||||
event = event && event.data || false;
|
||||
if(!event)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
waitForGroups.push(((<CalendarApp>this.getInstanceManager().app_obj.calendar)._fetch_group_members(event)).then(() =>
|
||||
{
|
||||
if(event && event.date && et2_calendar_event.owner_check(event, this) && (
|
||||
|
@ -1916,7 +1916,11 @@ export class et2_calendar_planner extends et2_calendar_view implements et2_IDeta
|
||||
{
|
||||
for(var i = 0; i < data.length; i++)
|
||||
{
|
||||
var event = egw.dataGetUIDdata('calendar::' + data[i]);
|
||||
let event = egw.dataGetUIDdata('calendar::' + data[i]);
|
||||
if(!event || !event.data)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
waitForGroups.push((<CalendarApp>app.calendar)._fetch_group_members(event.data));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user