mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 06:54:44 +08:00
fix inheriting inheritable attributes through template, closes #1828
This commit is contained in:
parent
41cce4dcb9
commit
caa11b8f7e
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue