Skip to content

Firefly III: a personal finances manager

Fix missing user property

Sander Dorigoe1f8ea3b1af7
diff --git a/app/Services/Internal/Update/JournalUpdateService.php b/app/Services/Internal/Update/JournalUpdateService.php
index c1ce184cd6..c901eaa9f6 100644
--- a/app/Services/Internal/Update/JournalUpdateService.php
+++ b/app/Services/Internal/Update/JournalUpdateService.php
@@ -674,6 +674,14 @@ class JournalUpdateService
$this->destinationTransaction->refresh();
Log::debug(sprintf('Updated amount to "%s"', $amount));
+ $group = $this->transactionGroup;
+ if(null === $group) {
+ $group = $this->transactionJournal?->transactionGroup;
+ }
+ if(null === $group) {
+ return;
+ }
+
event(new TriggeredAuditLog(
$this->transactionGroup->user,
$this->transactionGroup,