Bhumi Thakkar (Open ERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-1074369-bth into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-1074369-bth/+merge/133036

Hello,

  Group by loses the special char formatting.

Steps to Generate:

1. Project => Project => Tasks => List view
2. Select project from Group by part in searchbox

Observed: Special characters are escaped from string in Group Name. (Research 
& Development)
Expected: Special characters must unescaped from string in Group Name. 
(Research & Development)

Replace string with special characters.
replace('&amp;','&').replace('&lt;','<').replace('&gt;','>').replace('&quot;','"').replace('&#x27;',"'").replace('&#x2F;','/')

Thanks.



-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-1074369-bth/+merge/133036
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-1074369-bth.
=== modified file 'addons/web/static/src/js/view_list.js'
--- addons/web/static/src/js/view_list.js	2012-11-02 10:46:28 +0000
+++ addons/web/static/src/js/view_list.js	2012-11-06 10:56:58 +0000
@@ -1305,9 +1305,11 @@
                         value_if_empty: _t("Undefined"),
                         process_modifiers: false
                     });
+
                 } catch (e) {
                     group_label = row_data[group_column.id].value;
                 }
+                group_label = group_label.replace('&amp;','&').replace('&lt;','<').replace('&gt;','>').replace('&quot;','"').replace('&#x27;',"'").replace('&#x2F;','/')
                 $group_column.text(_.str.sprintf("%s (%d)",
                     group_label, group.length));
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to