Fix titles not being set properly on notes created via the Nextcloud API
This commit is contained in:
parent
9085802443
commit
6de5a44a1f
@ -46,7 +46,7 @@ class Note {
|
|||||||
$notedata = $database->get('notes', ['noteid', 'ownerid', 'color', 'content', 'title', 'modified', 'favorite'], ['noteid' => $noteid]);
|
$notedata = $database->get('notes', ['noteid', 'ownerid', 'color', 'content', 'title', 'modified', 'favorite'], ['noteid' => $noteid]);
|
||||||
|
|
||||||
$note = new Note($notedata['content'], $notedata['color'], $notedata['ownerid'], $notedata['noteid']);
|
$note = new Note($notedata['content'], $notedata['color'], $notedata['ownerid'], $notedata['noteid']);
|
||||||
$note->setTitle(is_null($notedata['title']) ? "" : $notedata['title']);
|
//$note->setTitle(is_null($notedata['title']) ? "" : $notedata['title']);
|
||||||
$note->setModified(is_null($notedata['modified']) ? date("Y-m-d H:i:s") : $notedata['modified']);
|
$note->setModified(is_null($notedata['modified']) ? date("Y-m-d H:i:s") : $notedata['modified']);
|
||||||
$note->setFavorite($notedata['favorite'] == true);
|
$note->setFavorite($notedata['favorite'] == true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user