From ac9ed436ab665e18b2f2c0ef76161fb6cd199b0b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:01:06 +0000 Subject: [PATCH] BUGFIX FolderID was not present in post, so file would not be uploaded to the correct place. (from r91958) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92472 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: ')),