Fix missing user property

This commit is contained in:
Sander Dorigo
2025-12-15 14:19:43 +01:00
parent 6f019f0bb4
commit e1f8ea3b1a

View File

@@ -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,