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:
Tom Rix 2009-11-17 20:30:27 +00:00 committed by Sam Minnee
parent 5c8628e7d4
commit a3a70c85eb

View File

@ -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: ')),