mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX When adding a top level folder in AssetAdmin, ensure you are
taken back to the top level folder view. Currently there is a non-object error adding a root level folder.
This commit is contained in:
parent
f2f45d62e7
commit
10f030de67
@ -407,7 +407,11 @@ JS
|
||||
mkdir($record->FullPath);
|
||||
chmod($record->FullPath, Filesystem::$file_create_mask);
|
||||
|
||||
if($parentRecord) {
|
||||
return $this->redirect(Controller::join_links($this->Link('show'), $parentRecord->ID));
|
||||
} else {
|
||||
return $this->redirect($this->Link());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user