Fixes issue 18075: Automatic focus change shows only one available option in combo boxes
authorMartin Taal <martin.taal@openbravo.com>
Tue, 26 Jul 2011 16:06:34 +0200
changeset 13275 08f573d7fca6
parent 13274 b4f549d970cf
child 13276 c1646495144d
Fixes issue 18075: Automatic focus change shows only one available option in combo boxes
The option addUnknowValues was set to false to prevent a red label in some cases, this caused the picklist to show up because of some SC internal logic
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	Tue Jul 26 15:51:14 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js	Tue Jul 26 16:06:34 2011 +0200
@@ -34,12 +34,14 @@
 
   // NOTE: Setting this property to false fixes the issue when using the mouse to pick a value
   // FIXME: Sometimes the field label gets a red color (a blink)
-  addUnknownValues: false,
+  // if set to false then the picklist is shown at focus:
+  // https://issues.openbravo.com/view.php?id=18075
+//  addUnknownValues: true,
   changeOnKeyPress: false,
   
   selectOnFocus: true,
   moveFocusOnPickValue: true,
-  
+   
   // is overridden to keep track that a value has been explicitly picked
   pickValue: function (value) {
     this._pickedValue = true;