mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-28 00:36:36 +01:00
Fix '+New Folder' to work with new parent picker
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
1. [](#bugfix)
|
||||
* Fixed issue with nested `list` fields both utilizing the custom `key` functionality
|
||||
* Regression: Page Preview not working, bad url [#1715](https://github.com/getgrav/grav-plugin-admin/issues/1715)
|
||||
* Fix '+New Folder' to work with new parent picker
|
||||
|
||||
# v1.10.0-beta.4
|
||||
## 07/01/2019
|
||||
|
||||
@@ -1246,7 +1246,7 @@ class AdminController extends AdminBaseController
|
||||
|
||||
$data = (array)$this->data;
|
||||
|
||||
if ($data['route'] === '/') {
|
||||
if ($data['route'] === '' || $data['route'] === '/') {
|
||||
$path = $this->grav['locator']->findResource('page://');
|
||||
} else {
|
||||
$path = $this->grav['page']->find($data['route'])->path();
|
||||
|
||||
Reference in New Issue
Block a user