mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Sending 'ID' parameter from containing form alongside UploadField uploads, in order to set the correct context in in the controller (in the case of CMSFileAddController, that's the parent folder)
This commit is contained in:
parent
9f5e26d12b
commit
4345eaa61b
@ -40,7 +40,10 @@
|
||||
this.fileupload($.extend(true,
|
||||
{
|
||||
formData: function(form) {
|
||||
return [{name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val()}];
|
||||
return [
|
||||
{name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val()},
|
||||
{name: 'ID', value: $(form).find(':input[name=ID]').val()}
|
||||
];
|
||||
},
|
||||
errorMessages: {
|
||||
// errorMessages for all error codes suggested from the plugin author, some will be overwritten by the config comming from php
|
||||
|
Loading…
x
Reference in New Issue
Block a user