Fix '+New Folder' to work with new parent picker

This commit is contained in:
Andy Miller
2019-07-11 09:15:07 -06:00
parent 29c2e12e85
commit c318d88f03
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
1. [](#bugfix) 1. [](#bugfix)
* Fixed issue with nested `list` fields both utilizing the custom `key` functionality * 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) * 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 # v1.10.0-beta.4
## 07/01/2019 ## 07/01/2019

View File

@@ -1246,7 +1246,7 @@ class AdminController extends AdminBaseController
$data = (array)$this->data; $data = (array)$this->data;
if ($data['route'] === '/') { if ($data['route'] === '' || $data['route'] === '/') {
$path = $this->grav['locator']->findResource('page://'); $path = $this->grav['locator']->findResource('page://');
} else { } else {
$path = $this->grav['page']->find($data['route'])->path(); $path = $this->grav['page']->find($data['route'])->path();