mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 15:56:30 +01:00
Fixed issue with deleting files in config based YAML files
# Conflicts: # CHANGELOG.md
This commit is contained in:
@@ -907,11 +907,11 @@ class AdminBaseController
|
||||
$settings = (object)$blueprints->schema()->getProperty($field);
|
||||
} else {
|
||||
$page = null;
|
||||
if ($type === 'user') {
|
||||
$settings = (object)$this->admin->blueprints($blueprint)->schema()->getProperty($field);
|
||||
if ($type === 'themes') {
|
||||
$obj = $this->grav[$type]->get(Utils::substrToString($blueprint, '/')); //here
|
||||
$settings = (object) $obj->blueprints()->schema()->getProperty($field);
|
||||
} else {
|
||||
$obj = $this->grav[$type]->get(Utils::substrToString($blueprint, '/'));
|
||||
$settings = (object)$obj->blueprints()->schema()->getProperty($field);
|
||||
$settings = (object)$this->admin->blueprints($blueprint)->schema()->getProperty($field);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user