mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Fix process card update check for tags (#10671)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user