View Full Version : [FIXED-1033] Combo - Selection changes if displayfield is not unique.

Tim Toady
24 Nov 2010, 8:55 AM
Ext version tested:

Ext 3.3

Adapter used:


css used:

only default ext-all.css

When using a combobox, if there are two options that have the same displayField value and the latter is selected, the first will always be selected on blur. Since I was using a template to display other values in the dropdown I didn't really care that the displayField was not unique. I was assuming that my valueField had to be unique, but not the displayField. IMHO, it should not be selecting the first instance of a displayField, but rather, what the user selected. If it is not possible, it should probably be in the docs that displayField must be unique.

Looking briefly, this appears to be caused by Ext.form.ComboBox.assertValue()

25 Nov 2010, 7:46 AM
Duplicate of bug #1033 (http://www.sencha.com/forum/showthread.php?101123-FIXED-1033-ComboBox-reports-incorrect-value-when-non-unique-display-fields-are-used&p=475694#post475694) (fix will be in Ext 3.3.1).

26 Nov 2010, 7:24 AM
and duplicate of my bugreport 525, which was declared to be fixed ;)

my override -> suggested hotfix really works fine, give it a try.

kind regards