1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Allow selecting note if ID matches more than one

This commit is contained in:
Laurent Cozic
2017-09-10 18:32:04 +01:00
parent 8e54404d28
commit 7cc26a4fe4
8 changed files with 119 additions and 66 deletions

View File

@ -110,7 +110,7 @@ class BaseModel {
}
static loadByPartialId(partialId) {
return this.modelSelectOne('SELECT * FROM `' + this.tableName() + '` WHERE `id` LIKE ?', [partialId + '%']);
return this.modelSelectAll('SELECT * FROM `' + this.tableName() + '` WHERE `id` LIKE ?', [partialId + '%']);
}
static applySqlOptions(options, sql, params = null) {