mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
#template label is not inherited through template since it's meant to mark the template note only
This commit is contained in:
@@ -26,7 +26,9 @@ class AttributeExistsExp extends Expression {
|
||||
if (attr.isInheritable) {
|
||||
resultNoteSet.addAll(note.getSubtreeNotesIncludingTemplated());
|
||||
}
|
||||
else if (note.isTemplate()) {
|
||||
else if (note.isTemplate() &&
|
||||
// template attr is used as a marker for templates, but it's not meant to be inherited
|
||||
!(this.attributeType === 'label' && this.attributeName === 'template')) {
|
||||
resultNoteSet.addAll(note.getTemplatedNotes());
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user