Merge lp:~openerp-dev/openobject-addons/trunk-bug-1159753-sunil into lp:openobject-addons

Proposed by sunil prajapati(OpenERP Trainee)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1159753-sunil
Merge into: lp:openobject-addons
Diff against target: 11 lines (+1/-0)
1 file modified
point_of_sale/static/src/js/db.js (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1159753-sunil
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+155952@code.launchpad.net

Description of the change

Hello sir,

I have fixed a problem of Backslash in pos search field .

Thanks,
sunil

To post a comment you must log in.

Unmerged revisions

8653. By sunil prajapati(OpenERP Trainee)

[FIX]addons:solve the Backslash issue in pos search field

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'point_of_sale/static/src/js/db.js'
2--- point_of_sale/static/src/js/db.js 2013-03-12 15:06:38 +0000
3+++ point_of_sale/static/src/js/db.js 2013-03-28 12:45:38 +0000
4@@ -253,6 +253,7 @@
5 * - a name, package or ean13 containing the query (case insensitive)
6 */
7 search_product_in_category: function(category_id, query){
8+ query=query.replace(/\\/g, "\\\\");
9 var re = RegExp("([0-9]+):.*?"+query,"gi");
10 var results = [];
11 for(var i = 0; i < this.limit; i++){

Subscribers

People subscribed via source and target branches

to all changes: