X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fform%2FComboBoxArray.js;h=023822daf715b79fccf000e5e16a9608d9c23274;hb=d204b4d16b3f28145ff032f905ecfd389c730622;hp=4e88a637da84bb5dd41c46c9e1a4688ce93cca61;hpb=08fb274e6d874a60f37630b21e3d83569210fcd0;p=roojs1 diff --git a/Roo/form/ComboBoxArray.js b/Roo/form/ComboBoxArray.js index 4e88a637da..023822daf7 100644 --- a/Roo/form/ComboBoxArray.js +++ b/Roo/form/ComboBoxArray.js @@ -269,7 +269,7 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField, setValue: function(v) // not a valid action - must use addItems.. { - this.reset(); + this.reset(); if (this.store.isLocal) { // then we can use the store to find the values.. @@ -301,7 +301,9 @@ 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]) != 'string' || !v[this.valueField].length) { + return; + } var keys = v[this.valueField].split(','); var display = v[this.displayField].split(','); for (var i = 0 ; i < keys.length; i++) {