Skip to content

Build your personal knowledge base with Trilium Notes

fix inheriting inheritable attributes through template, closes #1828

zadamcaa11b8f7e9c
diff --git a/src/entities/note.js b/src/entities/note.js
index 07fcd644dc..0fc26c3a08 100644
--- a/src/entities/note.js
+++ b/src/entities/note.js
@@ -370,7 +370,6 @@ class Note extends Entity {
WHERE attributes.isDeleted = 0
AND attributes.type = 'relation'
AND attributes.name = 'template'
- AND (treeWithAttrs.level = 0 OR attributes.isInheritable = 1)
)
SELECT attributes.* FROM attributes JOIN treeWithAttrs ON attributes.noteId = treeWithAttrs.noteId
WHERE attributes.isDeleted = 0 AND (attributes.isInheritable = 1 OR treeWithAttrs.level = 0)