Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Do some extra validation, fixes #3182
James Colebccde86c0c39
diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.phpindex 89ba3f0203..cc69367581 100644--- a/app/Factory/TransactionFactory.php+++ b/app/Factory/TransactionFactory.php@@ -185,7 +185,7 @@ class TransactionFactory);// 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_amount = $foreignAmount;