Use new setting variable since we already have it

This commit is contained in:
snipe
2025-11-04 21:12:49 +00:00
parent e5c55c9ab3
commit 4ada47e3b0
+1 -1
View File
@@ -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'];
}