A free open source IT asset/license management system
Changed verb to “restore” from “restored”
sniped06cfe650288
diff --git a/app/Http/Controllers/Api/ManufacturersController.php b/app/Http/Controllers/Api/ManufacturersController.phpindex 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.phpindex 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.phpindex 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 indexdiff --git a/app/Http/Controllers/ManufacturersController.php b/app/Http/Controllers/ManufacturersController.phpindex 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.phpindex 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();