mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-30 01:36:27 +01:00
Fixed fatal error in admin if POST request has data in it [#2074]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user