fixed bug 26645: can't select element in drop down using IE7
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 22 May 2014 17:09:58 +0200
changeset 23510 f7b9da95c630
parent 23509 34fddf330780
child 23511 f4e9ac637ab7
fixed bug 26645: can't select element in drop down using IE7
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 16:57:06 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,7 +77,9 @@
     //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) {