From caa11b8f7e9c77c9d7514267d3d9a74e651a9c0a Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 5 Apr 2021 20:52:19 +0200 Subject: [PATCH] fix inheriting inheritable attributes through template, closes #1828 --- src/entities/note.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/entities/note.js b/src/entities/note.js index 07fcd644d..0fc26c3a0 100644 --- a/src/entities/note.js +++ b/src/entities/note.js @@ -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)