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

@@ -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