diff --git a/app/Http/Controllers/CustomFieldsetsController.php b/app/Http/Controllers/CustomFieldsetsController.php index bee0f38e27..8128b3369f 100644 --- a/app/Http/Controllers/CustomFieldsetsController.php +++ b/app/Http/Controllers/CustomFieldsetsController.php @@ -196,7 +196,7 @@ class CustomFieldsetsController extends Controller */ public function associate(Request $request, $id) { - $set = CustomField::find($id); + $set = CustomFieldset::find($id); $this->authorize('update', $set); diff --git a/resources/lang/en/admin/hardware/general.php b/resources/lang/en/admin/hardware/general.php index 67226061b1..7aa0db7f34 100644 --- a/resources/lang/en/admin/hardware/general.php +++ b/resources/lang/en/admin/hardware/general.php @@ -14,6 +14,8 @@ return [ 'deleted' => 'This asset has been deleted.', 'edit' => 'Edit Asset', 'model_deleted' => 'This Assets model has been deleted. You must restore the model before you can restore the Asset.', + 'model_invalid' => 'The Model of this Asset is invalid.', + 'model_invalid_fix' => 'The Asset should be edited to correct this before attempting to check it in or out.', 'requestable' => 'Requestable', 'requested' => 'Requested', 'not_requestable' => 'Not Requestable', diff --git a/resources/lang/en/admin/models/message.php b/resources/lang/en/admin/models/message.php index e3b29d5b4b..ac596cfb1d 100644 --- a/resources/lang/en/admin/models/message.php +++ b/resources/lang/en/admin/models/message.php @@ -3,6 +3,8 @@ return array( 'does_not_exist' => 'Model does not exist.', + 'no_association' => 'NO MODEL ASSOCIATED.', + 'no_association_fix' => 'This will break things in weird and horrible ways. Edit this asset now to assign it a model.', 'assoc_users' => 'This model is currently associated with one or more assets and cannot be deleted. Please delete the assets, and then try deleting again. ', diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php index 66872bd1bf..a2c7e367d9 100644 --- a/resources/lang/en/general.php +++ b/resources/lang/en/general.php @@ -28,6 +28,10 @@ return [ 'audit' => 'Audit', 'audit_report' => 'Audit Log', 'assets' => 'Assets', + 'assets_audited' => 'assets audited', + 'assets_checked_in_count' => 'assets checked in', + 'assets_checked_out_count' => 'assets checked out', + 'asset_deleted_warning' => 'This asset has been deleted. You must restore it before you can assign it to someone.', 'assigned_date' => 'Date Assigned', 'assigned_to' => 'Assigned to :name', 'assignee' => 'Assigned to', diff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.php index c39704289f..f7fe067c8a 100755 --- a/resources/views/hardware/checkin.blade.php +++ b/resources/views/hardware/checkin.blade.php @@ -46,13 +46,13 @@ @else - This asset's model is invalid! - The asset should be edited to correct this before attempting to check it in or out. + {{ trans('admin/hardware/general.model_invalid')}} + {{ trans('admin/hardware/general.model_invalid_fix')}} @endif
- +