Roo/form/ComboBoxArray.js
authorAlan Knowles <alan@roojs.com>
Tue, 12 Jun 2012 09:55:21 +0000 (17:55 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 12 Jun 2012 09:55:21 +0000 (17:55 +0800)
Roo/form/ComboBoxArray.js

index 256d32b..023822d 100644 (file)
@@ -301,7 +301,7 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
         this.reset();
         this.el.dom.value = v[this.displayField];
         this.hiddenEl.dom.value = v[this.valueField];
-        if (typeof(v[this.valueField].) == 'undefined' || !v[this.valueField].length) {
+        if (typeof(v[this.valueField]) != 'string' || !v[this.valueField].length) {
             return;
         }
         var keys = v[this.valueField].split(',');