From d06cfe650288931e27b3eb3efdaf8fcff7df0942 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 22 Nov 2023 20:08:41 +0000 Subject: [PATCH] =?UTF-8?q?Changed=20verb=20to=20=E2=80=9Crestore=E2=80=9D?= =?UTF-8?q?=20from=20=E2=80=9Crestored=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: snipe --- app/Http/Controllers/Api/ManufacturersController.php | 2 +- app/Http/Controllers/Api/UsersController.php | 2 +- app/Http/Controllers/AssetModelsController.php | 2 +- app/Http/Controllers/ManufacturersController.php | 2 +- app/Http/Controllers/Users/UsersController.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Api/ManufacturersController.php b/app/Http/Controllers/Api/ManufacturersController.php index 73d585817c..6b5a130229 100644 --- a/app/Http/Controllers/Api/ManufacturersController.php +++ b/app/Http/Controllers/Api/ManufacturersController.php @@ -187,7 +187,7 @@ class ManufacturersController extends Controller $logaction->item_id = $manufacturer->id; $logaction->created_at = date('Y-m-d H:i:s'); $logaction->user_id = Auth::user()->id; - $logaction->logaction('restored'); + $logaction->logaction('restore'); return response()->json(Helper::formatStandardApiResponse('success', trans('admin/manufacturers/message.restore.success')), 200); } diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 3fd609ffd5..913fe0f5a7 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -704,7 +704,7 @@ class UsersController extends Controller $logaction->item_id = $user->id; $logaction->created_at = date('Y-m-d H:i:s'); $logaction->user_id = Auth::user()->id; - $logaction->logaction('restored'); + $logaction->logaction('restore'); return response()->json(Helper::formatStandardApiResponse('success', trans('admin/users/message.restore.success')), 200); } diff --git a/app/Http/Controllers/AssetModelsController.php b/app/Http/Controllers/AssetModelsController.php index 30d1c20854..a3afc4f00d 100755 --- a/app/Http/Controllers/AssetModelsController.php +++ b/app/Http/Controllers/AssetModelsController.php @@ -260,7 +260,7 @@ class AssetModelsController extends Controller $logaction->item_id = $model->id; $logaction->created_at = date('Y-m-d H:i:s'); $logaction->user_id = Auth::user()->id; - $logaction->logaction('restored'); + $logaction->logaction('restore'); // Redirect them to the deleted page if there are more, otherwise the section index diff --git a/app/Http/Controllers/ManufacturersController.php b/app/Http/Controllers/ManufacturersController.php index 13c95ceb13..c927a5affb 100755 --- a/app/Http/Controllers/ManufacturersController.php +++ b/app/Http/Controllers/ManufacturersController.php @@ -238,7 +238,7 @@ class ManufacturersController extends Controller $logaction->item_id = $manufacturer->id; $logaction->created_at = date('Y-m-d H:i:s'); $logaction->user_id = Auth::user()->id; - $logaction->logaction('restored'); + $logaction->logaction('restore'); // Redirect them to the deleted page if there are more, otherwise the section index $deleted_manufacturers = Manufacturer::onlyTrashed()->count(); diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.php index 72df42887b..2655e50f75 100755 --- a/app/Http/Controllers/Users/UsersController.php +++ b/app/Http/Controllers/Users/UsersController.php @@ -398,7 +398,7 @@ class UsersController extends Controller $logaction->item_id = $user->id; $logaction->created_at = date('Y-m-d H:i:s'); $logaction->user_id = Auth::user()->id; - $logaction->logaction('restored'); + $logaction->logaction('restore'); // Redirect them to the deleted page if there are more, otherwise the section index $deleted_users = User::onlyTrashed()->count();