Skip to content

Firefly III: a personal finances manager

Fixed a bug in storing date changes for the opening balance of an account

Robert Horlingsf6b7bd5b44db
diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php
index 95f7dc6ec3..996ba8ca59 100644
--- a/app/Repositories/Account/AccountRepository.php
+++ b/app/Repositories/Account/AccountRepository.php
@@ -554,7 +554,8 @@ class AccountRepository implements AccountRepositoryInterface
protected function updateInitialBalance(Account $account, TransactionJournal $journal, array $data)
{
$journal->date = $data['openingBalanceDate'];
-
+ $journal->save();
+
/** @var Transaction $transaction */
foreach ($journal->transactions()->get() as $transaction) {
if ($account->id == $transaction->account_id) {