Fix CRM view did not add new infolog entries on push

This commit is contained in:
nathangray
2020-08-06 12:49:33 -06:00
committed by Ralf Becker
parent a562867671
commit ece51a1d12
5 changed files with 28 additions and 5 deletions

View File

@ -580,9 +580,10 @@ var et2_nextmatch = /** @class */ (function (_super) {
if (type === void 0) { type = "add"; }
var index = 0;
var appname = this._get_appname();
if (appname && this.egw().window.app[appname] && typeof this.egw().window.app[appname].nm_refresh_index == "function") {
var app_obj = this.getInstanceManager().app_obj[appname] || this.egw().window.app[appname];
if (appname && app_obj && typeof app_obj.nm_refresh_index == "function") {
var sort = Object.values(this.controller._indexMap).map(function (e) { return ({ index: e.idx, uid: e.uid }); });
index = this.egw().window.app[appname].nm_refresh_index(this, uid, sort, type);
index = this.getInstanceManager().app_obj[appname].nm_refresh_index(this, uid, sort, type);
}
// App cancelled the add
if (index === false) {