mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Infolog: Fix CRM view would overwrite state in infolog list, leading to wrong filters in favorites
This commit is contained in:
parent
93adb0dca5
commit
ac1a975f1d
@ -165,12 +165,15 @@ var InfologApp = /** @class */ (function (_super) {
|
|||||||
* @return {object} Application specific map representing the current state
|
* @return {object} Application specific map representing the current state
|
||||||
*/
|
*/
|
||||||
InfologApp.prototype.getState = function () {
|
InfologApp.prototype.getState = function () {
|
||||||
// call parent
|
var state = {
|
||||||
var state = _super.prototype.getState.call(this);
|
action: null,
|
||||||
|
action_id: null
|
||||||
|
};
|
||||||
var nm = {};
|
var nm = {};
|
||||||
// Get index etemplate
|
// Get index etemplate
|
||||||
var et2 = etemplate2_1.etemplate2.getById('infolog-index');
|
var et2 = etemplate2_1.etemplate2.getById('infolog-index');
|
||||||
if (et2) {
|
if (et2) {
|
||||||
|
state = et2.widgetContainer.getWidgetById("nm").getValue();
|
||||||
var content = et2.widgetContainer.getArrayMgr('content');
|
var content = et2.widgetContainer.getArrayMgr('content');
|
||||||
nm = content && content.data && content.data.nm ? content.data.nm : {};
|
nm = content && content.data && content.data.nm ? content.data.nm : {};
|
||||||
}
|
}
|
||||||
|
@ -176,15 +176,18 @@ class InfologApp extends EgwApp
|
|||||||
*/
|
*/
|
||||||
getState()
|
getState()
|
||||||
{
|
{
|
||||||
// call parent
|
let state = {
|
||||||
var state = super.getState();
|
action: null,
|
||||||
var nm : any = {};
|
action_id: null
|
||||||
|
};
|
||||||
|
let nm : any = {};
|
||||||
|
|
||||||
// Get index etemplate
|
// Get index etemplate
|
||||||
var et2 = etemplate2.getById('infolog-index');
|
var et2 = etemplate2.getById('infolog-index');
|
||||||
if(et2)
|
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: {};
|
nm = content && content.data && content.data.nm ? content.data.nm: {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user