details:   https://code.openbravo.com/erp/devel/pi/rev/1cbe9f023742
changeset: 23093:1cbe9f023742
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu May 22 16:57:06 2014 +0200
summary:   related to issue 26645, related to issue 24574: clean up

details:   https://code.openbravo.com/erp/devel/pi/rev/c93fd134778b
changeset: 23094:c93fd134778b
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu May 22 17:09:58 2014 +0200
summary:   fixed bug 26645: can't select element in drop down using IE7

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
 |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 052c07be4a9d -r c93fd134778b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
        Thu May 22 13:58:26 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
        Thu May 22 17:09:58 2014 +0200
@@ -77,11 +77,13 @@
     //adding double equals to filter the exact value and not all matching sub 
strings.
     //Refer issue https://issues.openbravo.com/view.php?id=24574.
     referenceType = isc.SimpleType.getType(this.type).editorType;
-    if (value && referenceType !== 'OBListItem') {
+    if (value && isc.isA.Array(value) && referenceType !== 'OBListItem') {
+      // value is an array when picking in a FK selector drop down
+      // add '==' if needed
       for (i = 0; i < value.length; i++) {
         //do not append when composite identifiers are present.
-        if (value[i].indexOf(" - ") === -1) {
-          value[i] = "==" + value[i];
+        if (value[i].indexOf(' - ') === -1) {
+          value[i] = '==' + value[i];
         }
       }
     }

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to