diff --git a/app/controllers/admin/ModelsController.php b/app/controllers/admin/ModelsController.php
index 9931b7152b..cdfd8f7f1c 100755
--- a/app/controllers/admin/ModelsController.php
+++ b/app/controllers/admin/ModelsController.php
@@ -252,17 +252,17 @@ class ModelsController extends AdminController
if (isset($model->id)) {
- // Restore the user
+ // Restore the model
$model->restore();
// Prepare the success message
$success = Lang::get('admin/models/message.restore.success');
- // Redirect to the user management page
- return Redirect::to('hardware/models')->with('success', $success);
+ // Redirect back
+ return Redirect::back()->with('success', $success);
} else {
- return Redirect::to('hardware/models')->with('error', Lang::get('admin/models/message.not_found'));
+ return Redirect::back()->with('error', Lang::get('admin/models/message.not_found'));
}
}
diff --git a/app/lang/en/admin/hardware/general.php b/app/lang/en/admin/hardware/general.php
index 968723cd7c..56554b1eda 100755
--- a/app/lang/en/admin/hardware/general.php
+++ b/app/lang/en/admin/hardware/general.php
@@ -9,6 +9,7 @@ return array(
'deployable' => 'Deployable',
'deleted' => 'This asset has been deleted. Click here to restore it.',
'edit' => 'Edit Asset',
+ 'model_deleted' => 'This Assets model has been deleted. You must restore the model before you can restore the Asset.
Click here to restore the model.',
'requestable' => 'Requestable',
'restore' => 'Restore Asset',
'pending' => 'Pending',
diff --git a/app/views/backend/hardware/view.blade.php b/app/views/backend/hardware/view.blade.php
index caed1434e4..686b153e09 100755
--- a/app/views/backend/hardware/view.blade.php
+++ b/app/views/backend/hardware/view.blade.php
@@ -47,13 +47,16 @@