[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
This commit is contained in:
Simon Lejeune 2014-04-03 23:17:17 +02:00
parent 3a917639c8
commit a1f08e0d10
1 changed files with 2 additions and 2 deletions

View File

@ -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') {