mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Fix #1198
This commit is contained in:
@@ -258,6 +258,8 @@ trait TransactionServiceTrait
|
||||
protected function setForeignCurrency(Transaction $transaction, ?TransactionCurrency $currency): void
|
||||
{
|
||||
if (is_null($currency)) {
|
||||
$transaction->foreign_currency_id = null;
|
||||
$transaction->save();
|
||||
return;
|
||||
}
|
||||
$transaction->foreign_currency_id = $currency->id;
|
||||
|
||||
Reference in New Issue
Block a user