mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
make sure by detecting the active filters, we get the filters set to mail -> nm (similar issue as rev47468)
This commit is contained in:
parent
27ab8b3728
commit
37ddf7d9c3
@ -1662,6 +1662,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
mail_doActionCall: function(_action, _elems)
|
mail_doActionCall: function(_action, _elems)
|
||||||
{
|
{
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* mail_getActiveFilters
|
* mail_getActiveFilters
|
||||||
*
|
*
|
||||||
@ -1670,7 +1671,9 @@ app.classes.mail = AppJS.extend(
|
|||||||
*/
|
*/
|
||||||
mail_getActiveFilters: function(_action)
|
mail_getActiveFilters: function(_action)
|
||||||
{
|
{
|
||||||
var obj_manager = egw_getObjectManager(this.nm_index, false);
|
// we can NOT query global object manager for this.nm_index="nm", as we might not get the one from mail,
|
||||||
|
// if other tabs are open, we have to query for obj_manager for "mail" and then it's child with id "nm"
|
||||||
|
var obj_manager = egw_getObjectManager(this.app).getObjectById(this.nm_index);
|
||||||
if (obj_manager && obj_manager.manager && obj_manager.manager.data && obj_manager.manager.data.nextmatch && obj_manager.manager.data.nextmatch.activeFilters)
|
if (obj_manager && obj_manager.manager && obj_manager.manager.data && obj_manager.manager.data.nextmatch && obj_manager.manager.data.nextmatch.activeFilters)
|
||||||
{
|
{
|
||||||
return obj_manager.manager.data.nextmatch.activeFilters;
|
return obj_manager.manager.data.nextmatch.activeFilters;
|
||||||
|
Loading…
Reference in New Issue
Block a user