From 8aa6f2e66adc3412c56b65d272fe3b50ec30ee48 Mon Sep 17 00:00:00 2001 From: Semenov Date: Mon, 6 May 2024 12:18:12 +0300 Subject: [PATCH] dev --- src/actions/BackendModelDeleteAction.php | 5 ++++- src/views/_model_header.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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 @@

modelShowName; ?> sx_id) && $model->sx_id) : ?> - +