fix inheriting inheritable attributes through template, closes #1828

This commit is contained in:
zadam 2021-04-05 20:52:19 +02:00
parent 41cce4dcb9
commit caa11b8f7e

View file

@ -370,7 +370,6 @@ class Note extends Entity {
WHERE attributes.isDeleted = 0
AND 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.noteId
WHERE attributes.isDeleted = 0 AND (attributes.isInheritable = 1 OR treeWithAttrs.level = 0)