Skip to content

Firefly III: a personal finances manager

Fixed a bug where the source and destination account could be the same one.

James Colef81a475cc989
diff --git a/app/Models/TransactionJournal.php b/app/Models/TransactionJournal.php
index 5b78595ec5..80cc33794d 100644
--- a/app/Models/TransactionJournal.php
+++ b/app/Models/TransactionJournal.php
@@ -315,7 +315,7 @@ class TransactionJournal extends Model
{
$cache = new CacheProperties;
$cache->addProperty($this->id);
- $cache->addProperty('destinationAccount');
+ $cache->addProperty('sourceAccount');
if ($cache->has()) {
return $cache->get(); // @codeCoverageIgnore
}