mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-09 11:18:10 +00:00
Fix #904
This commit is contained in:
@@ -236,7 +236,9 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
// update note:
|
// update note:
|
||||||
|
if (isset($data['notes'])) {
|
||||||
$this->updateNote($journal, $data['notes']);
|
$this->updateNote($journal, $data['notes']);
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
if (in_array($key, $this->validMetaFields)) {
|
if (in_array($key, $this->validMetaFields)) {
|
||||||
@@ -291,7 +293,9 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
// update note:
|
// update note:
|
||||||
|
if (isset($data['notes'])) {
|
||||||
$this->updateNote($journal, $data['notes']);
|
$this->updateNote($journal, $data['notes']);
|
||||||
|
}
|
||||||
|
|
||||||
// update meta fields:
|
// update meta fields:
|
||||||
$result = $journal->save();
|
$result = $journal->save();
|
||||||
|
|||||||
Reference in New Issue
Block a user