improve fix not updated number of nextmatch rows on push type "delete"

This commit is contained in:
Ralf Becker 2020-08-05 18:48:02 +02:00
parent 13ed300c9c
commit 3b4d8071e9
3 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ var AppJS = (function(){ "use strict"; return Class.extend(
if (pushData.app !== this.appname) return; if (pushData.app !== this.appname) return;
// only handle delete by default, for simple case of uid === "$app::$id" // 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'); egw.refresh('', pushData.app, pushData.id, 'delete');
} }

View File

@ -164,7 +164,7 @@ var EgwApp = /** @class */ (function () {
if (pushData.app !== this.appname) if (pushData.app !== this.appname)
return; return;
// only handle delete by default, for simple case of uid === "$app::$id" // 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'); egw.refresh('', pushData.app, pushData.id, 'delete');
} }
}; };

View File

@ -263,7 +263,7 @@ export abstract class EgwApp
if (pushData.app !== this.appname) return; if (pushData.app !== this.appname) return;
// only handle delete by default, for simple case of uid === "$app::$id" // 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'); egw.refresh('', pushData.app, pushData.id, 'delete');
} }