Calendar: Fix push bugs

- Change status from edit dialog did not push
- Change participants from edit dialog did not update planner by user correctly, sometimes not added, sometimes not removed
This commit is contained in:
nathangray 2020-07-15 13:32:10 -06:00
parent ab1e59c0df
commit 1cbbfbd9a5
4 changed files with 7 additions and 3 deletions

View File

@ -1746,6 +1746,8 @@ class calendar_boupdate extends calendar_bo
$tracking = new calendar_tracking($this);
$tracking->track($event, $old_event);
// notify the link-class about the update, as other apps may be subscribed to it
Link::notify_update('calendar',$event['id'],$event,"update");
}
return $Ok;
}

View File

@ -3199,9 +3199,6 @@ class calendar_uiforms extends calendar_ui
}
}
}
// notify the link-class about the update, as other apps may be subscribed to it
Link::notify_update('calendar',$event['id'],$event,"update");
}
/**

View File

@ -222,6 +222,8 @@ var et2_calendar_planner = /** @class */ (function (_super) {
if (sort_key === egw.user('account_id')) {
row.set_class('current_user');
}
// Set account_id so event.owner_check can use it
row.options.owner = sort_key;
// Since the daywise cache is by user, we can tap in here
var t = new Date(this.options.start_date);
var end = new Date(this.options.end_date);

View File

@ -556,6 +556,9 @@ export class et2_calendar_planner extends et2_calendar_view implements et2_IDeta
{
row.set_class('current_user')
}
// Set account_id so event.owner_check can use it
row.options.owner = sort_key;
// Since the daywise cache is by user, we can tap in here
var t = new Date(this.options.start_date);
var end = new Date(this.options.end_date);