From 885ed833e11bee99509032a14dbb22ef90130d26 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 13 Jun 2016 17:31:43 +0200 Subject: [PATCH] Fix resources categories shown in iframe --- api/js/jsapi/egw_preferences.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/js/jsapi/egw_preferences.js b/api/js/jsapi/egw_preferences.js index e3440956b9..6e1ddd1a42 100644 --- a/api/js/jsapi/egw_preferences.js +++ b/api/js/jsapi/egw_preferences.js @@ -116,7 +116,7 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() show_preferences: function (name, apps) { var current_app = this.app_name(); - var query = {current_app: current_app}; + var query = {menuaction:'',current_app: current_app}; // give warning, if app does not support given type, but all apps link to common prefs, if they dont support prefs themselfs if (jQuery.isArray(apps) && jQuery.inArray(current_app, apps) == -1 && (name != 'prefs' && name != 'acl') || !jQuery.isArray(apps) && (typeof apps[current_app] == 'undefined' || !apps[current_app])) @@ -150,11 +150,10 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() } else { - delete query.current_app; query.menuaction='preferences.preferences_categories_ui.index'; query.cats_app=current_app; - query.ajax = true; } + query.ajax = true; egw.link_handler(egw.link(url, query), current_app); break; }