mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
improve fix not updated number of nextmatch rows on push type "delete"
This commit is contained in:
parent
13ed300c9c
commit
3b4d8071e9
@ -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');
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user