mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix search by attributes was finding also deleted attributes
This commit is contained in:
parent
cd9eef32b0
commit
ce5c385c15
@ -7,7 +7,7 @@ module.exports = function(attributeFilters) {
|
|||||||
let i = 1;
|
let i = 1;
|
||||||
|
|
||||||
for (const filter of attributeFilters) {
|
for (const filter of attributeFilters) {
|
||||||
joins.push(`LEFT JOIN attributes AS attribute${i} ON attribute${i}.noteId = notes.noteId AND attribute${i}.name = ?`);
|
joins.push(`LEFT JOIN attributes AS attribute${i} ON attribute${i}.noteId = notes.noteId AND attribute${i}.name = ? AND attribute${i}.isDeleted = 0`);
|
||||||
joinParams.push(filter.name);
|
joinParams.push(filter.name);
|
||||||
|
|
||||||
where += " " + filter.relation + " ";
|
where += " " + filter.relation + " ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user