mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Infolog: Fix CRM view would overwrite state in infolog list, leading to wrong filters in favorites
This commit is contained in:
parent
afd2364979
commit
66a0454936
@ -253,12 +253,15 @@ var InfologApp = /** @class */ (function (_super) {
|
||||
* @return {object} Application specific map representing the current state
|
||||
*/
|
||||
InfologApp.prototype.getState = function () {
|
||||
// call parent
|
||||
var state = _super.prototype.getState.call(this);
|
||||
var state = {
|
||||
action: null,
|
||||
action_id: null
|
||||
};
|
||||
var nm = {};
|
||||
// Get index etemplate
|
||||
var et2 = etemplate2_1.etemplate2.getById('infolog-index');
|
||||
if (et2) {
|
||||
state = et2.widgetContainer.getWidgetById("nm").getValue();
|
||||
var content = et2.widgetContainer.getArrayMgr('content');
|
||||
nm = content && content.data && content.data.nm ? content.data.nm : {};
|
||||
}
|
||||
|
@ -277,15 +277,18 @@ class InfologApp extends EgwApp
|
||||
*/
|
||||
getState()
|
||||
{
|
||||
// call parent
|
||||
var state = super.getState();
|
||||
var nm : any = {};
|
||||
let state = {
|
||||
action: null,
|
||||
action_id: null
|
||||
};
|
||||
let nm : any = {};
|
||||
|
||||
// Get index etemplate
|
||||
var et2 = etemplate2.getById('infolog-index');
|
||||
if(et2)
|
||||
{
|
||||
var content = et2.widgetContainer.getArrayMgr('content');
|
||||
state = et2.widgetContainer.getWidgetById("nm").getValue();
|
||||
let content = et2.widgetContainer.getArrayMgr('content');
|
||||
nm = content && content.data && content.data.nm ? content.data.nm: {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user