From 4ada47e3b0b60e89a28df2fc7bee94321fe3d301 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 4 Nov 2025 21:12:49 +0000 Subject: [PATCH] Use new setting variable since we already have it --- app/Http/Requests/UpdateAssetRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/UpdateAssetRequest.php b/app/Http/Requests/UpdateAssetRequest.php index 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']; }