stop #workspaceTemplate from being inherited (should have the same special behavior as #template)

This commit is contained in:
zadam
2022-09-16 23:03:02 +02:00
parent b816773d02
commit 05231bd1c2
3 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ class AttributeExistsExp extends Expression {
}
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')) {
!(this.attributeType === 'label' && (this.attributeName === 'template' || this.attributeName === 'workspacetemplate'))) {
resultNoteSet.addAll(note.getTemplatedNotes());
}
else {