Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
If you get the destination account attribute before the model is saved, the cache breaks.
James Cole88bbafd3e8db
diff --git a/app/Models/TransactionJournal.php b/app/Models/TransactionJournal.phpindex 4e6e3a6dff..8ec64eceb1 100644--- a/app/Models/TransactionJournal.php+++ b/app/Models/TransactionJournal.php@@ -290,16 +290,8 @@ class TransactionJournal extends Model*/public function getDestinationAccountAttribute(){- $cache = new CacheProperties;- $cache->addProperty($this->id);- $cache->addProperty('destinationAccount');-- if ($cache->has()) {- return $cache->get(); // @codeCoverageIgnore- }$account = $this->transactions()->where('amount', '>', 0)->first()->account;- $cache->store($account);-+return $account;}