Good morning.
There's a bug on the combobox field that creates really strange situations
It is present on version 6.5.2, 6.5.3, 6.5.4.63 and on 6.6.0.115.
See attached picture.
= instead of ==
Here on 6.5.3
Last edited by wki01; 23 Mar 2018 at 2:50 AM.
Reason: change title
// HACK: form.isDirty() always returns true, but it should not be dirty right after the values are set via the binding
vm.notify()
form.getForm().getFields().each(function(field) {
field.resetOriginalValue();
if (field.xtype == "combo") {
var rec = field.findRecordByDisplay(field.getValue()) field.lastSelectedRecords = rec field.lastSelectedRecords[0] = rec
}
});
I had to add the lines in red to make my code work.
I do not understand if the code I wrote is not good or if there is a very thin bug in the function resetOriginalValue()