PDA

View Full Version : BasicForm.setValues & trackResetOnLoad



XASD
1 Mar 2011, 12:46 AM
I'm tracing isDirty() status in Field.processValue() and have some problems with following code:


field.setValue(values[id]);
if(this.trackResetOnLoad){
field.originalValue = field.getValue();
}

originalValue must be set before value itself IMHO.

So,something like


field.setValue(this.trackResetOnLoad?field.originalValue= values[id]:values[id]);

is more correct approach.