Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Also touch when changing tags or accounts.
James Cole21c47fdcb0ba
diff --git a/app/Services/Internal/Support/JournalServiceTrait.php b/app/Services/Internal/Support/JournalServiceTrait.phpindex 3e153110d4..a6ffca236f 100644--- a/app/Services/Internal/Support/JournalServiceTrait.php+++ b/app/Services/Internal/Support/JournalServiceTrait.php@@ -231,6 +231,7 @@ trait JournalServiceTraittry {$journal->tags()->sync($set);+ $journal->touch();} catch (UniqueConstraintViolationException $e) {Log::error(sprintf('Firefly III could not sync tags: %s', $e->getMessage()));}diff --git a/app/Services/Internal/Update/JournalUpdateService.php b/app/Services/Internal/Update/JournalUpdateService.phpindex 6f635686f7..c3dd88822c 100644--- a/app/Services/Internal/Update/JournalUpdateService.php+++ b/app/Services/Internal/Update/JournalUpdateService.php@@ -486,6 +486,7 @@ class JournalUpdateService// refresh transactions.$this->sourceTransaction->refresh();$this->destinationTransaction->refresh();+ $this->transactionJournal->touch();Log::debug(sprintf('Will set source to #%d ("%s")', $source->id, $source->name));Log::debug(sprintf('Will set dest to #%d ("%s")', $destination->id, $destination->name));}@@ -922,6 +923,7 @@ class JournalUpdateServiceLog::debug('Will update tags.');$tags = $this->data['tags'] ?? null;$this->storeTags($this->transactionJournal, $tags);+}}