mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #942
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user