This commit is contained in:
James Cole 2017-10-20 07:51:53 +02:00
parent de15ca01e3
commit 4d6c679b0e
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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();