Fixed fatal error in admin if POST request has data in it [#2074]

This commit is contained in:
Matias Griese
2021-02-18 15:33:38 +02:00
parent 1a2a2c52c9
commit 64e41b034e
3 changed files with 16 additions and 9 deletions

View File

@@ -2695,9 +2695,8 @@ class AdminController extends AdminBaseController
protected function prepareData(array $data)
{
$type = trim("{$this->view}/{$this->admin->route}", '/');
$data = $this->admin->data($type, $data);
return $data;
return $this->admin->data($type, $data);
}
/**