Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #942
James Cole4d6c679b0e2d
diff --git a/app/Repositories/Journal/JournalRepository.php b/app/Repositories/Journal/JournalRepository.phpindex 13f75a3860..239fe0c063 100644--- a/app/Repositories/Journal/JournalRepository.php+++ b/app/Repositories/Journal/JournalRepository.php@@ -293,8 +293,8 @@ class JournalRepository implements JournalRepositoryInterface}// update note:- if (isset($data['notes'])) {- $this->updateNote($journal, $data['notes']);+ if (isset($data['notes']) && !is_null($data['notes']) ) {+ $this->updateNote($journal, strval($data['notes']));}// update meta fields:@@ -335,7 +335,10 @@ class JournalRepository implements JournalRepositoryInterface$journal->budgets()->detach();// update note:- $this->updateNote($journal, $data['notes']);+ if (isset($data['notes']) && !is_null($data['notes']) ) {+ $this->updateNote($journal, strval($data['notes']));+ }+// update meta fields:$result = $journal->save();