A free open source IT asset/license management system
Use new setting variable since we already have it
snipe4ada47e3b0b6
diff --git a/app/Http/Requests/UpdateAssetRequest.php b/app/Http/Requests/UpdateAssetRequest.phpindex 912e00a420..6d01dc5a30 100644--- a/app/Http/Requests/UpdateAssetRequest.php+++ b/app/Http/Requests/UpdateAssetRequest.php@@ -52,7 +52,7 @@ class UpdateAssetRequest extends ImageUploadRequest// if the purchase cost is passed in as a string **and** the digit_separator is ',' (as is common in the EU)// then we tweak the purchase_cost rule to make it a string- if (Setting::getSettings()->digit_separator === '1.234,56' && is_string($this->input('purchase_cost'))) {+ if ($setting->digit_separator === '1.234,56' && is_string($this->input('purchase_cost'))) {$rules['purchase_cost'] = ['nullable', 'string'];}