Fix process card update check for tags (#10671)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2026-03-23 17:53:32 +05:00
committed by GitHub
parent 0a7abd8a65
commit a2e3a89132
+6 -1
View File
@@ -769,8 +769,13 @@ export function matchCardCheck (
params: Record<string, any>,
context: Record<string, any>
): 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
}