Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix inheriting inheritable attributes through template, closes #1828
zadamcaa11b8f7e9c
diff --git a/src/entities/note.js b/src/entities/note.jsindex 07fcd644dc..0fc26c3a08 100644--- a/src/entities/note.js+++ b/src/entities/note.js@@ -370,7 +370,6 @@ class Note extends Entity {WHERE attributes.isDeleted = 0AND 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.noteIdWHERE attributes.isDeleted = 0 AND (attributes.isInheritable = 1 OR treeWithAttrs.level = 0)