diff --git a/src/actions/BackendModelDeleteAction.php b/src/actions/BackendModelDeleteAction.php index 09505fa..60cdc81 100644 --- a/src/actions/BackendModelDeleteAction.php +++ b/src/actions/BackendModelDeleteAction.php @@ -66,7 +66,7 @@ public function run() } $model = $this->controller->model; - + $rr = new RequestResponse(); if ($rr->isRequestAjaxPost()) @@ -84,9 +84,12 @@ public function run() } } catch (\Exception $e) { + throw $e; $rr->message = $e->getMessage(); $rr->success = false; } + + return (array) $rr; } diff --git a/src/views/_model_header.php b/src/views/_model_header.php index 2a55449..6dfdac3 100644 --- a/src/views/_model_header.php +++ b/src/views/_model_header.php @@ -45,7 +45,7 @@