mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 22:38:54 +01:00
fix TypeError undeleting an event in non-list-view eg. dayview
This commit is contained in:
parent
b41d35a0ef
commit
cc7d1fbe58
@ -1891,8 +1891,9 @@ var CalendarApp = /** @class */ (function (_super) {
|
|||||||
* @param _senders
|
* @param _senders
|
||||||
*/
|
*/
|
||||||
CalendarApp.prototype.cal_delete = function (_action, _senders) {
|
CalendarApp.prototype.cal_delete = function (_action, _senders) {
|
||||||
var all = _action.parent.data.nextmatch.getSelection().all;
|
var _a, _b;
|
||||||
var no_notifications = _action.parent.getActionById("no_notifications").checked;
|
var all = (_a = _action.parent.data.nextmatch) === null || _a === void 0 ? void 0 : _a.getSelection().all;
|
||||||
|
var no_notifications = (_b = _action.parent.getActionById("no_notifications")) === null || _b === void 0 ? void 0 : _b.checked;
|
||||||
var matches = false;
|
var matches = false;
|
||||||
var ids = [];
|
var ids = [];
|
||||||
var cal_event = this.egw.dataGetUIDdata(_senders[0].id);
|
var cal_event = this.egw.dataGetUIDdata(_senders[0].id);
|
||||||
|
@ -2111,8 +2111,8 @@ class CalendarApp extends EgwApp
|
|||||||
*/
|
*/
|
||||||
cal_delete(_action, _senders)
|
cal_delete(_action, _senders)
|
||||||
{
|
{
|
||||||
let all = _action.parent.data.nextmatch.getSelection().all;
|
let all = _action.parent.data.nextmatch?.getSelection().all;
|
||||||
let no_notifications = _action.parent.getActionById("no_notifications").checked;
|
let no_notifications = _action.parent.getActionById("no_notifications")?.checked;
|
||||||
let matches = false;
|
let matches = false;
|
||||||
let ids = [];
|
let ids = [];
|
||||||
let cal_event = this.egw.dataGetUIDdata(_senders[0].id);
|
let cal_event = this.egw.dataGetUIDdata(_senders[0].id);
|
||||||
|
Loading…
Reference in New Issue
Block a user