From 9c39d4a5545b3f10e7af7518f3d078129ba28848 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 4 Jul 2012 15:28:22 +0800 Subject: [PATCH] Roo/form/ComboBoxArray.js --- Roo/form/ComboBoxArray.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Roo/form/ComboBoxArray.js b/Roo/form/ComboBoxArray.js index b0a8fd7e4f..dca5adc40c 100644 --- a/Roo/form/ComboBoxArray.js +++ b/Roo/form/ComboBoxArray.js @@ -293,6 +293,14 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField, + } + if (typeof(v) == 'object') { + // then let's assume it's an array of objects.. + Roo.each(v, function(l) { + this.addItem(l); + }, this); + + } -- 2.39.2