mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Rename "native" references to "primary" or "pc".
This commit is contained in:
@@ -40,8 +40,8 @@ class UpdateRequest extends FormRequest
|
||||
{
|
||||
$fields = [
|
||||
'title' => ['title', 'convertString'],
|
||||
'native_currency_id' => ['native_currency_id', 'convertInteger'],
|
||||
'native_currency_code' => ['native_currency_code', 'convertString'],
|
||||
'primary_currency_id' => ['primary_currency_id', 'convertInteger'],
|
||||
'primary_currency_code' => ['primary_currency_code', 'convertString'],
|
||||
];
|
||||
|
||||
return $this->getAllData($fields);
|
||||
@@ -54,8 +54,8 @@ class UpdateRequest extends FormRequest
|
||||
{
|
||||
return [
|
||||
'title' => ['required', 'min:1', 'max:255'],
|
||||
'native_currency_id' => 'exists:transaction_currencies,id',
|
||||
'native_currency_code' => 'exists:transaction_currencies,code',
|
||||
'primary_currency_id' => 'exists:transaction_currencies,id',
|
||||
'primary_currency_code' => 'exists:transaction_currencies,code',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user