mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX FolderID was not present in post, so file would not be uploaded to the correct place.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@91958 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5c8628e7d4
commit
a3a70c85eb
@ -141,6 +141,7 @@ JS
|
||||
// see r54952 (originally committed in r42014)
|
||||
$form = new Form($this,'UploadForm', new FieldSet(
|
||||
new HiddenField("ID", "", $this->currentPageID()),
|
||||
new HiddenField("FolderID", "", $this->currentPageID()),
|
||||
// needed because the button-action is triggered outside the iframe
|
||||
new HiddenField("action_doUpload", "", "1"),
|
||||
new FileField("Files[0]" , _t('AssetAdmin.CHOOSEFILE','Choose file: ')),
|
||||
|
Loading…
Reference in New Issue
Block a user