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

index 8dd327a..256d32b 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 (!v[this.valueField].length) {
+        if (typeof(v[this.valueField].) == 'undefined' || !v[this.valueField].length) {
             return;
         }
         var keys = v[this.valueField].split(',');