mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 19:49:54 +00:00
A temporary fix for the problem that storing a transaction journal doesn't return the actual journal when successful.
This commit is contained in:
@@ -469,7 +469,7 @@ class Transaction implements TransactionInterface
|
||||
$journal->completed = true;
|
||||
$journal->save();
|
||||
if (isset($data['return_journal']) && $data['return_journal'] == true) {
|
||||
return $journal;
|
||||
return ['journal' => $journal, 'messagebag' => $journal->errors()];
|
||||
}
|
||||
return $journal->errors();
|
||||
}
|
||||
|
Reference in New Issue
Block a user