Skip to content

Build your personal knowledge base with Trilium Notes

renamed inheritAttributes to template

azivner171877ce0834
diff --git a/src/entities/note.js b/src/entities/note.js
index 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.noteId
WHERE attributes.isDeleted = 0
AND 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.noteId
diff --git a/src/services/attributes.js b/src/services/attributes.js
index 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) {