1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-06 09:19:22 +02:00

Desktop: Fixes #3412: Fixed custom order when note title is changed

This commit is contained in:
Laurent Cozic
2020-06-28 19:10:35 +01:00
parent acf1ff6d1d
commit 5bbf9d87c2

View File

@@ -265,7 +265,7 @@ class Note extends BaseItem {
includeTimestamps: true,
}, options);
const output = ['id', 'title', 'is_todo', 'todo_completed', 'parent_id', 'encryption_applied'];
const output = ['id', 'title', 'is_todo', 'todo_completed', 'parent_id', 'encryption_applied', 'order'];
if (options.includeTimestamps) {
output.push('updated_time');
@@ -278,9 +278,7 @@ class Note extends BaseItem {
static previewFieldsSql(fields = null) {
if (fields === null) fields = this.previewFields();
return this.db()
.escapeFields(fields)
.join(',');
return this.db().escapeFields(fields).join(',');
}
static async loadFolderNoteByField(folderId, field, value) {