From 25ca02f541538b3a02bf0e046e2907c427b12f9c Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 26 Feb 2023 13:30:14 +0100 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/7083 --- app/Services/Internal/Update/JournalUpdateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Internal/Update/JournalUpdateService.php b/app/Services/Internal/Update/JournalUpdateService.php index b6a12e6d67..acc3735fd7 100644 --- a/app/Services/Internal/Update/JournalUpdateService.php +++ b/app/Services/Internal/Update/JournalUpdateService.php @@ -322,7 +322,7 @@ class JournalUpdateService $validator->setTransactionType($expectedType); $validator->setUser($this->transactionJournal->user); $validator->source = $this->getValidSourceAccount(); - $result = $validator->validateDestination(['id' => $destId]); + $result = $validator->validateDestination(['id' => $destId, 'name' => $destName]); Log::debug(sprintf('hasValidDestinationAccount(%d, "%s") will return %s', $destId, $destName, var_export($result, true))); // TODO typeOverrule: the account validator may have another opinion on the transaction type.