Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed some rare bugs.
James Cole0a147e5c9c89
diff --git a/app/Import/ImportValidator.php b/app/Import/ImportValidator.phpindex 58e6145abe..65dfbbe96a 100644--- a/app/Import/ImportValidator.php+++ b/app/Import/ImportValidator.php@@ -181,13 +181,13 @@ class ImportValidatorLog::debug(sprintf('No account named %s of type %s, create new account.', $account->name, $type));$result = $repository->store([- 'user' => $this->user->id,- 'accountType' => config('firefly.shortNamesByFullName.' . $type),- 'name' => $account->name,+ 'user' => $this->user->id,+ 'accountType' => config('firefly.shortNamesByFullName.' . $type),+ 'name' => $account->name,'virtualBalance' => 0,- 'active' => true,- 'iban' => null,- 'openingBalance' => 0,+ 'active' => true,+ 'iban' => null,+ 'openingBalance' => 0,]);}@@ -262,6 +262,7 @@ class ImportValidator$entry->valid = false;Log::warning('Cannot import entry. Asset account is NULL and import account is also NULL.');+ return $entry;}Log::debug('Asset account is OK.', ['id' => $entry->fields['asset-account']->id, 'name' => $entry->fields['asset-account']->name]);diff --git a/app/Repositories/Tag/TagRepository.php b/app/Repositories/Tag/TagRepository.phpindex 3366b68cfc..39ad12bc9d 100644--- a/app/Repositories/Tag/TagRepository.php+++ b/app/Repositories/Tag/TagRepository.php@@ -143,7 +143,7 @@ class TagRepository implements TagRepositoryInterface->transactionJournals()->sortCorrectly()->expanded()- ->groupBy(['tag_transaction_journal.tag_id'])+ ->groupBy(['tag_transaction_journal.tag_id','tag_transaction_journal.transaction_journal_id'])->get(TransactionJournal::queryFields());return $journals;