We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c55c9 commit 4ada47eCopy full SHA for 4ada47e
app/Http/Requests/UpdateAssetRequest.php
@@ -52,7 +52,7 @@ public function rules()
52
53
// if the purchase cost is passed in as a string **and** the digit_separator is ',' (as is common in the EU)
54
// 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'))) {
+ if ($setting->digit_separator === '1.234,56' && is_string($this->input('purchase_cost'))) {
56
$rules['purchase_cost'] = ['nullable', 'string'];
57
}
58
0 commit comments