fix(tasks): do not find children of closed tasks globally

This commit is contained in:
xeruf 2024-10-15 03:00:12 +02:00
parent 613a8b3822
commit 4e4ad7099f
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ impl TasksRelay {
for task in self.tasks.values() {
if task.get_filter_title().to_ascii_lowercase() == lowercase_arg &&
// exclude closed tasks and their subtasks
!self.traverse_up_from(Some(*task.get_id())).any(|t| t.pure_state() == State::Closed) {
!self.traverse_up_from(Some(*task.get_id())).any(|t| !t.pure_state().is_open()) {
return vec![task.event.id];
}
}