renamed inheritAttributes to template

This commit is contained in:
azivner 2018-08-21 12:52:11 +02:00
parent 4f1e6ec70f
commit 171877ce08
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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) {