Fixed broken folder attribute on filepicker [#1465]

This commit is contained in:
Matias Griese
2018-06-14 16:47:06 +03:00
parent a48d1237a1
commit b77d0e6053
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
# v1.8.5
## mm/dd/2018
1. [](#bugfix)
* Fixed broken folder attribute on filepicker [#1465](https://github.com/getgrav/grav-plugin-admin/issues/1465)
# v1.8.4
## 06/11/2018

View File

@@ -751,7 +751,7 @@ class AdminBaseController
return false;
}
if ($data instanceof Data) {
if (method_exists($data, 'blueprints')) {
$settings = $data->blueprints()->schema()->getProperty($this->post['name']);
} elseif (method_exists($data, 'getBlueprint')) {
$settings = $data->getBlueprint()->schema()->getProperty($this->post['name']);
@@ -760,7 +760,7 @@ class AdminBaseController
if (isset($settings['folder'])) {
$folder = $settings['folder'];
} else {
$folder = '@self';
$folder = 'self@';
}
// Do not use self@ outside of pages