From a3a70c85ebddf038ba7a462deb7f54001ade8d52 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Tue, 17 Nov 2009 20:30:27 +0000 Subject: [PATCH] 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 --- code/AssetAdmin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index c2c0dc0f..30846a4e 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -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: ')),