From 3b4d8071e9dc2db2d5af007981bcdc562c135397 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 5 Aug 2020 18:48:02 +0200 Subject: [PATCH] improve fix not updated number of nextmatch rows on push type "delete" --- api/js/jsapi/app_base.js | 2 +- api/js/jsapi/egw_app.js | 2 +- api/js/jsapi/egw_app.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/js/jsapi/app_base.js b/api/js/jsapi/app_base.js index a7a3f3af65..b93bb5e188 100644 --- a/api/js/jsapi/app_base.js +++ b/api/js/jsapi/app_base.js @@ -233,7 +233,7 @@ var AppJS = (function(){ "use strict"; return Class.extend( if (pushData.app !== this.appname) return; // only handle delete by default, for simple case of uid === "$app::$id" - if (pushData.type === 'delete') + if (pushData.type === 'delete' && egw.dataHasUID(this.uid(pushData))) { egw.refresh('', pushData.app, pushData.id, 'delete'); } diff --git a/api/js/jsapi/egw_app.js b/api/js/jsapi/egw_app.js index 76084d9b04..f3f1ea70e8 100644 --- a/api/js/jsapi/egw_app.js +++ b/api/js/jsapi/egw_app.js @@ -164,7 +164,7 @@ var EgwApp = /** @class */ (function () { if (pushData.app !== this.appname) return; // only handle delete by default, for simple case of uid === "$app::$id" - if (pushData.type === 'delete') { + if (pushData.type === 'delete' && egw.dataHasUID(this.uid(pushData))) { egw.refresh('', pushData.app, pushData.id, 'delete'); } }; diff --git a/api/js/jsapi/egw_app.ts b/api/js/jsapi/egw_app.ts index e8de5e7d07..de8d519e9f 100644 --- a/api/js/jsapi/egw_app.ts +++ b/api/js/jsapi/egw_app.ts @@ -263,7 +263,7 @@ export abstract class EgwApp if (pushData.app !== this.appname) return; // only handle delete by default, for simple case of uid === "$app::$id" - if (pushData.type === 'delete') + if (pushData.type === 'delete' && egw.dataHasUID(this.uid(pushData))) { egw.refresh('', pushData.app, pushData.id, 'delete'); }