Skip to content

Commit

Permalink
BUGFIX: UploadField does not work on DataObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
unclecheese committed Jul 20, 2012
1 parent 09067cc commit b57f2bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions javascript/UploadField.js
Expand Up @@ -102,10 +102,13 @@
this.fileupload($.extend(true,
{
formData: function(form) {

var idVal = $(form).find(':input[name=ID]').val();
if(!idVal) {
idVal = 0;
}
return [
{name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val()},
{name: 'ID', value: $(form).find(':input[name=ID]').val()}
{name: 'ID', value: idVal}
];
},
errorMessages: {
Expand Down

0 comments on commit b57f2bd

Please sign in to comment.