mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-03 21:30:21 +01:00
Fix #920 bug in deleting a file uploaded with the file field
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user