A free open source IT asset/license management system
Removed stray character
snipe4b21f0d00b04
diff --git a/app/Http/Requests/Traits/MayContainCustomFields.php b/app/Http/Requests/Traits/MayContainCustomFields.phpindex ed0c96dace..da079c56d2 100644--- a/app/Http/Requests/Traits/MayContainCustomFields.php+++ b/app/Http/Requests/Traits/MayContainCustomFields.php@@ -15,7 +15,7 @@ trait MayContainCustomFields// For auditing and some other non-standard things where $this is only the form submission and may not have the asset infoif ((request()->route('asset') && (request()->route('asset')->model_id))) {$asset_model = AssetModel::find(request()->route('asset')->model_id);-= } else {+ } else {// find the modelif ($this->method() == 'POST') {$asset_model = AssetModel::find($this->model_id);@@ -25,6 +25,7 @@ trait MayContainCustomFields}}+// collect the custom fields in the request$validator->after(function ($validator) use ($asset_model) {$request_fields = $this->collect()->keys()->filter(function ($attributes) {