From 4bf0d230dc39a99ea730b5a9a4d29f22093f0775 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Sat, 9 May 2026 20:40:12 +0500 Subject: [PATCH] filter automation processes in visibility check (#10832) Signed-off-by: Denis Bykhov --- plugins/process-resources/src/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/process-resources/src/utils.ts b/plugins/process-resources/src/utils.ts index 6288460aa6..3aac0c1477 100644 --- a/plugins/process-resources/src/utils.ts +++ b/plugins/process-resources/src/utils.ts @@ -959,6 +959,9 @@ export function getMockAttribute (_class: Ref>, label: IntlString, ty export async function checkProcessSectionVisibility (doc: Card): Promise { const client = getClient() const anc = client.getHierarchy().getAncestors(doc._class) - const processes = client.getModel().findAllSync(process.class.Process, { masterTag: { $in: anc } }) + const processes = client.getModel().findAllSync(process.class.Process, { + masterTag: { $in: anc }, + automationOnly: { $ne: true } + }) return processes.length > 0 }