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

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