PDA

View Full Version : BasicForm updateRecord


petard
04-23-2007, 10:08 AM
Hi,

There is a bug in updateRecord function.


updateRecord : function(record){
record.beginEdit();
var fs = record.fields;
fs.each(function(f){
var field = this.fieldField(f.name);
if(field){
record.set(f.name, field.getValue());
}
}, this);
record.endEdit();
}


The call to function this.fieldField should be this.findField.

Cheers,
Petar

Animal
04-23-2007, 11:09 AM
Jack put that fix into SVN a while ago. (The original must have been during one of his 36 hour programming stints!)

I don't know when a new build is going to be released though.