From a2e3a89132dd98de834acaa2bc340acbdedacc55 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Mon, 23 Mar 2026 17:53:32 +0500 Subject: [PATCH] Fix process card update check for tags (#10671) Signed-off-by: Denis Bykhov --- plugins/process-resources/src/utils.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/process-resources/src/utils.ts b/plugins/process-resources/src/utils.ts index 006289a13e..9234d7d3df 100644 --- a/plugins/process-resources/src/utils.ts +++ b/plugins/process-resources/src/utils.ts @@ -769,8 +769,13 @@ export function matchCardCheck ( params: Record, context: Record ): boolean { - const doc = context.card + let doc = context.card if (doc === undefined) return false + const process = client.getModel().findObject(execution.process) + if (process === undefined) return false + if (client.getHierarchy().isMixin(process.masterTag)) { + doc = client.getHierarchy().as(doc, process.masterTag) + } const res = matchQuery([doc], params, doc._class, client.getHierarchy(), true) return res.length > 0 }