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