summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2014-04-03 23:17:17 +0200
committerSimon Lejeune <sle@openerp.com>2014-04-03 23:17:17 +0200
commita1f08e0d103e96268c5bbd1a83d0869d1bfba44d (patch)
tree6e08498305e8235ed25152ea484ca078a40a5d4d /addons
parent3a917639c84b37459a419b4db28a0dcdd9982afd (diff)
[FIX] action manager: use EncodeURIComponent instead of EncodeURI because of bad encoding of the ampersand in the secund (resulting in impossibility to encode 'Belgium Profit & Loss' for instance)
bzr revid: sle@openerp.com-20140403211717-sb84ir2ts62yizzf
Diffstat (limited to 'addons')
-rw-r--r--addons/report/static/src/js/qwebactionmanager.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/report/static/src/js/qwebactionmanager.js b/addons/report/static/src/js/qwebactionmanager.js
index aa98b2c9c52..3910cab4dd7 100644
--- a/addons/report/static/src/js/qwebactionmanager.js
+++ b/addons/report/static/src/js/qwebactionmanager.js
@@ -33,8 +33,8 @@ openerp.report = function(instance) {
report_url += "/" + action.context.active_ids.join(',');
}
} else {
- report_url += "?options=" + encodeURI(JSON.stringify(action.data));
- report_url += "&context=" + encodeURI(JSON.stringify(action.context));
+ report_url += "?options=" + encodeURIComponent(JSON.stringify(action.data));
+ report_url += "&context=" + encodeURIComponent(JSON.stringify(action.context));
}
if (action.report_type == 'qweb-html') {