From 73743721b11cb8e1e6b777287bd1c115bf08b244 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 20 Nov 2014 11:36:53 +0100 Subject: [PATCH] Fixed a bug where a non-matching journal would keep its recurring transaction. --- app/lib/FireflyIII/Event/TransactionJournal.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/lib/FireflyIII/Event/TransactionJournal.php b/app/lib/FireflyIII/Event/TransactionJournal.php index d33a188e46..e966e13ff5 100644 --- a/app/lib/FireflyIII/Event/TransactionJournal.php +++ b/app/lib/FireflyIII/Event/TransactionJournal.php @@ -20,6 +20,7 @@ class TransactionJournal $repository = \App::make('FireflyIII\Database\Recurring'); $set = $repository->get(); + /** @var \RecurringTransaction $entry */ foreach ($set as $entry) { $repository->scan($entry, $journal); @@ -41,6 +42,8 @@ class TransactionJournal /** @var \FireflyIII\Database\Recurring $repository */ $repository = \App::make('FireflyIII\Database\Recurring'); $set = $repository->get(); + $journal->recurring_transaction_id = null; + $journal->save(); /** @var \RecurringTransaction $entry */ foreach ($set as $entry) {