From 62321a03ca2ff789bb1a6b5d010f4357ea7a9b3c Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 28 Aug 2018 14:23:51 +0200 Subject: [PATCH] Fix missing combi for transaction types. --- app/Factory/TransactionFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.php index 26a8f454fe..9168702251 100644 --- a/app/Factory/TransactionFactory.php +++ b/app/Factory/TransactionFactory.php @@ -204,7 +204,7 @@ class TransactionFactory throw new FireflyException(sprintf('Source and destination account cannot be both of the type "%s"', $destinationType)); } // source must be in this list AND dest must be in this list: - $list = [AccountType::DEFAULT, AccountType::ASSET, AccountType::DEBT, AccountType::MORTGAGE, AccountType::LOAN, AccountType::MORTGAGE]; + $list = [AccountType::DEFAULT, AccountType::ASSET, AccountType::CASH, AccountType::DEBT, AccountType::MORTGAGE, AccountType::LOAN, AccountType::MORTGAGE]; if ( !\in_array($sourceType, $list, true) && !\in_array($destinationType, $list, true)) {