From ba03f025715f0b7e396fdcadf1b3ec8eb96d0a33 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 28 Jul 2015 13:08:16 +0000 Subject: [PATCH] Fix wrong encoded autoloading url --- etemplate/js/et2_widget_tree.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index 306880d3a2..684e2e73bd 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -203,6 +203,12 @@ var et2_tree = et2_inputWidget.extend( if (widget.options.autoloading) { var url = widget.options.autoloading; + + //Set escaping mode to utf8, as url in + //autoloading needs to be utf8 encoded. + //For instance item id with umlaut. + widget.input.setEscapingMode('utf8'); + if (url.charAt(0) != '/' && url.substr(0,4) != 'http') { url = '/json.php?menuaction='+url;