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
renamed inheritAttributes to template
azivner171877ce0834
diff --git a/src/entities/note.js b/src/entities/note.jsindex ee793247f1..2c1f89e84b 100644--- a/src/entities/note.js+++ b/src/entities/note.js@@ -112,7 +112,7 @@ class Note extends Entity {JOIN treeWithAttrs ON treeWithAttrs.noteId = attributes.noteIdWHERE attributes.isDeleted = 0AND attributes.type = 'relation'- AND attributes.name = 'inheritAttributes'+ AND attributes.name = 'template'AND (attributes.noteId = ? OR attributes.isInheritable = 1))SELECT attributes.* FROM attributes JOIN treeWithAttrs ON attributes.noteId = treeWithAttrs.noteIddiff --git a/src/services/attributes.js b/src/services/attributes.jsindex 2933750da1..41c15ed68c 100644--- a/src/services/attributes.js+++ b/src/services/attributes.js@@ -25,7 +25,7 @@ const BUILTIN_ATTRIBUTES = [{ type: 'relation', name: 'runOnChildNoteCreation' },{ type: 'relation', name: 'runOnAttributeCreation' },{ type: 'relation', name: 'runOnAttributeChange' },- { type: 'relation', name: 'inheritAttributes' }+ { type: 'relation', name: 'template' }];async function getNotesWithLabel(name, value) {