mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
added "inherit" relation, #3493
This commit is contained in:
@@ -26,10 +26,10 @@ class AttributeExistsExp extends Expression {
|
||||
if (attr.isInheritable) {
|
||||
resultNoteSet.addAll(note.getSubtreeNotesIncludingTemplated());
|
||||
}
|
||||
else if (note.isTemplate() &&
|
||||
else if (note.isInherited() &&
|
||||
// template attr is used as a marker for templates, but it's not meant to be inherited
|
||||
!(this.attributeType === 'label' && (this.attributeName === 'template' || this.attributeName === 'workspacetemplate'))) {
|
||||
resultNoteSet.addAll(note.getTemplatedNotes());
|
||||
resultNoteSet.addAll(note.getInheritingNotes());
|
||||
}
|
||||
else {
|
||||
resultNoteSet.add(note);
|
||||
|
||||
Reference in New Issue
Block a user