diff --git a/plugins/task-resources/src/components/StatusFilter.svelte b/plugins/task-resources/src/components/StatusFilter.svelte
index d75df2bc7a..d556fd5cca 100644
--- a/plugins/task-resources/src/components/StatusFilter.svelte
+++ b/plugins/task-resources/src/components/StatusFilter.svelte
@@ -94,12 +94,19 @@
).map((p) => [p._id, p])
)
for (const status of statusStore.values()) {
- if (hierarchy.isDerived(status._class, targetClass) && status.ofAttribute === filter.key.attribute._id) {
- if (prjStatuses.size > 0 && !prjStatuses.has(status._id)) {
- continue
+ if (prjStatuses.size > 0 && !prjStatuses.has(status._id)) {
+ continue
+ }
+ if (hierarchy.isDerived(status._class, targetClass)) {
+ if (selectedProjectType === undefined) {
+ if (status.ofAttribute === filter.key.attribute._id) {
+ statuses.push(status)
+ targets.add(status._id)
+ }
+ } else {
+ statuses.push(status)
+ targets.add(status._id)
}
- statuses.push(status)
- targets.add(status._id)
}
}
statuses = statuses.filter((it, idx, arr) => arr.findIndex((q) => q._id === it._id) === idx)
diff --git a/plugins/task-resources/src/components/TypesView.svelte b/plugins/task-resources/src/components/TypesView.svelte
index d1c273a916..29646fe35b 100644
--- a/plugins/task-resources/src/components/TypesView.svelte
+++ b/plugins/task-resources/src/components/TypesView.svelte
@@ -107,7 +107,7 @@