diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d8fb582..2bf20c7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * Fixed issue with nested `list` fields both utilizing the custom `key` functionality * Fixed issue with `array` field nested in `list` that were losing their index order when the list reordered * Fixed file form field failing resolution checks in certain circumstances + * Fixed issue with deleting files in config based YAML files # v1.9.7 ## 06/21/2019 diff --git a/classes/adminbasecontroller.php b/classes/adminbasecontroller.php index 03ee9ab6..3747dd28 100644 --- a/classes/adminbasecontroller.php +++ b/classes/adminbasecontroller.php @@ -943,11 +943,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); } }