BUGFIX: UploadField does not work on DataObjects

This commit is contained in:
unclecheese 2012-07-19 22:11:38 -03:00
parent 09067cc8dd
commit b57f2bd022

View File

@ -102,10 +102,13 @@
this.fileupload($.extend(true, this.fileupload($.extend(true,
{ {
formData: function(form) { formData: function(form) {
var idVal = $(form).find(':input[name=ID]').val();
if(!idVal) {
idVal = 0;
}
return [ return [
{name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val()}, {name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val()},
{name: 'ID', value: $(form).find(':input[name=ID]').val()} {name: 'ID', value: idVal}
]; ];
}, },
errorMessages: { errorMessages: {