mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #951 from sheadawson/950-fileexists
FIX fileexists check
This commit is contained in:
commit
403b47fe6c
@ -57,6 +57,10 @@ class CMSFileAddController extends LeftAndMain {
|
|||||||
Requirements::javascript(FRAMEWORK_DIR . '/javascript/AssetUploadField.js');
|
Requirements::javascript(FRAMEWORK_DIR . '/javascript/AssetUploadField.js');
|
||||||
Requirements::css(FRAMEWORK_DIR . '/css/AssetUploadField.css');
|
Requirements::css(FRAMEWORK_DIR . '/css/AssetUploadField.css');
|
||||||
|
|
||||||
|
if($currentPageID = $this->currentPageID()){
|
||||||
|
Session::set("{$this->class}.currentPage", $currentPageID);
|
||||||
|
}
|
||||||
|
|
||||||
$folder = $this->currentPage();
|
$folder = $this->currentPage();
|
||||||
|
|
||||||
$uploadField = UploadField::create('AssetUploadField', '');
|
$uploadField = UploadField::create('AssetUploadField', '');
|
||||||
|
Loading…
Reference in New Issue
Block a user