mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-31 18:35:57 +01:00
Fixed broken folder attribute on filepicker [#1465]
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user