From 21e5eb79ddd8a6837a96755f10ef34035205a745 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 28 Apr 2014 16:17:41 +0000 Subject: [PATCH] Fix bug where if no additional apps were requested, no translation was done. Was visible in ACL edit dialog. --- phpgwapi/js/jsapi/egw_lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_lang.js b/phpgwapi/js/jsapi/egw_lang.js index e9e085a8af..05ceffb6bb 100644 --- a/phpgwapi/js/jsapi/egw_lang.js +++ b/phpgwapi/js/jsapi/egw_lang.js @@ -146,7 +146,7 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() { } apps.push(_apps[i].app); } - if (this !== egw) + if (this !== egw && apps.length > 0) { this.lang_order = apps.reverse(); }