Fix #920 bug in deleting a file uploaded with the file field

This commit is contained in:
Flavio Copes
2017-01-12 19:36:13 +01:00
parent 689f4f977b
commit ca00a9b150
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
* Show the clear cache buttons if the user has `admin.cache` permissions [#908](https://github.com/getgrav/grav-plugin-admin/issues/908#issuecomment-270748616)
* Fix colorpicker validation when transparency is set to 1.00 [#921](https://github.com/getgrav/grav-plugin-admin/issues/921)
* Fix html markup in section twig [#922](https://github.com/getgrav/grav-plugin-admin/pull/922)
* Fix bug in deleting a file uploaded with the `file` field [#920](github.com/getgrav/grav-plugin-admin/issues/920)
# v1.2.7
## 12/22/2016

View File

@@ -806,7 +806,7 @@ class AdminBaseController
$field = $uri->param('field');
$event = $this->grav->fireEvent('onAdminCanSave', new Event(['controller' => &$this]));
if (!$event['can_save']) {
if (isset($event['can_save']) && $event['can_save'] == false) {
return false;
}