mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Do some extra validation, fixes #3182
This commit is contained in:
@@ -185,7 +185,7 @@ class TransactionFactory
|
|||||||
);
|
);
|
||||||
|
|
||||||
// do foreign currency thing: add foreign currency info to $one and $two if necessary.
|
// do foreign currency thing: add foreign currency info to $one and $two if necessary.
|
||||||
if (null !== $this->foreignCurrency && null !== $foreignAmount && $this->foreignCurrency->id !== $this->currency->id) {
|
if (null !== $this->foreignCurrency && null !== $foreignAmount && $this->foreignCurrency->id !== $this->currency->id && '' !== $foreignAmount) {
|
||||||
$result->foreign_currency_id = $this->foreignCurrency->id;
|
$result->foreign_currency_id = $this->foreignCurrency->id;
|
||||||
$result->foreign_amount = $foreignAmount;
|
$result->foreign_amount = $foreignAmount;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user