Skip to content

Commit 4ada47e

Browse files
committed
Use new setting variable since we already have it
1 parent e5c55c9 commit 4ada47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Requests/UpdateAssetRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function rules()
5252

5353
// if the purchase cost is passed in as a string **and** the digit_separator is ',' (as is common in the EU)
5454
// then we tweak the purchase_cost rule to make it a string
55-
if (Setting::getSettings()->digit_separator === '1.234,56' && is_string($this->input('purchase_cost'))) {
55+
if ($setting->digit_separator === '1.234,56' && is_string($this->input('purchase_cost'))) {
5656
$rules['purchase_cost'] = ['nullable', 'string'];
5757
}
5858

0 commit comments

Comments
 (0)