details:   https://code.openbravo.com/erp/devel/pi/rev/e8206f71dbfc
changeset: 21150:e8206f71dbfc
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Tue Sep 17 16:27:47 2013 +0530
summary:   Related to Issue 0024726: Backout changeset dd0f6674c851

details:   https://code.openbravo.com/erp/devel/pi/rev/add3314933ea
changeset: 21151:add3314933ea
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Tue Sep 17 16:29:06 2013 +0530
summary:   Fixes Issue 0024787: Business partner selector, when writing numbers 
to filter the system removes the numbers written

Backed out changeset 6a60136ef23f as it causes the issue.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
 |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (20 lines):

diff -r a549285cc9f0 -r add3314933ea 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
        Tue Sep 17 12:00:46 2013 +0530
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
        Tue Sep 17 16:29:06 2013 +0530
@@ -1031,15 +1031,9 @@
   if (typeof object !== 'string') {
     return false;
   }
-  if (object.length > 10 && object.length !== 32) {
+  if (object.length !== 32) {
     return false;
   }
-  if (object.length === 32) {
-    return (/[A-Fa-f0-9]{32,32}/).test(object);
-  } else if (object.length <= 10) {
-    //return true if uuid contains only numbers
-    return (/^\d+$/).test(object);
-  }
   return (/[A-Fa-f0-9]{32,32}/).test(object);
 };
 

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to