mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 01:16:46 -06:00
Fix #942
This commit is contained in:
parent
de15ca01e3
commit
4d6c679b0e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user