Handle mixin for todo result (#10792)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2026-04-21 21:30:58 +05:00
committed by GitHub
parent ecad38c940
commit 6796636d8a
+7 -1
View File
@@ -739,8 +739,14 @@ export async function requestResult (
const client = getClient()
const doc = await client.findOne(card.class.Card, { _id: execution.card })
if (doc === undefined) return
const _process = client.getModel().findObject(execution.process)
if (_process === undefined) return
const h = client.getHierarchy()
const isMixin = h.isMixin(_process.masterTag)
const targetDoc = isMixin ? h.as(doc, _process.masterTag) : doc
const promise = new Promise<void>((resolve, reject) => {
showPopup(process.component.ResultInput, { results, context, doc }, undefined, (res) => {
showPopup(process.component.ResultInput, { results, context, doc: targetDoc }, undefined, (res) => {
if (res !== undefined) {
for (const contextId in res) {
const val = res[contextId]