Merge lp:~julie-w/unifield-web/US-7594 into lp:unifield-web

Proposed by jftempo on 2020-07-31
Status: Needs review
Proposed branch: lp:~julie-w/unifield-web/US-7594
Merge into: lp:unifield-web
Diff against target: 21 lines (+2/-2)
1 file modified
addons/openerp/controllers/templates/exp.mako (+2/-2)
To merge this branch: bzr merge lp:~julie-w/unifield-web/US-7594
Reviewer Review Type Date Requested Status
UniField Dev Team 2020-07-31 Pending
Review via email: mp+388479@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/openerp/controllers/templates/exp.mako'
2--- addons/openerp/controllers/templates/exp.mako 2017-09-14 12:04:48 +0000
3+++ addons/openerp/controllers/templates/exp.mako 2020-07-31 12:01:24 +0000
4@@ -46,7 +46,7 @@
5 var fields2 = [];
6 forEach(options, function(o){
7 o.selected = true;
8- fields2 = fields2.concat('"' + o.text + '"');
9+ fields2 = fields2.concat('"' + o.text.replace(/"/g, '\\"') + '"');
10 });
11 openobject.dom.get('_terp_fields2').value = '[' + fields2.join(',') + ']';
12 form.submit();
13@@ -123,7 +123,7 @@
14
15 forEach(options, function(o){
16 o.selected = true;
17- fields2 = fields2.concat('"' + o.text + '"');
18+ fields2 = fields2.concat('"' + o.text.replace(/"/g, '\\"') + '"');
19 });
20 openobject.dom.get('_terp_fields2').value = '[' + fields2.join(',') + ']';
21 }

Subscribers

People subscribed via source and target branches