From 60753914d0ca3031ac5527d97dcfde717ee785ca Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Wed, 8 Apr 2026 15:20:40 +0800 Subject: [PATCH] fix: [Application] The form collection node of the loop body references session variables as parameters. After modifying the session variables at the end of the loop, the options for form collection are no longer displayed --- .../application/flow/step_node/form_node/impl/base_form_node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/application/flow/step_node/form_node/impl/base_form_node.py b/apps/application/flow/step_node/form_node/impl/base_form_node.py index 30dfa97229b..7b12f0be5f1 100644 --- a/apps/application/flow/step_node/form_node/impl/base_form_node.py +++ b/apps/application/flow/step_node/form_node/impl/base_form_node.py @@ -6,6 +6,7 @@ @date:2024/11/4 14:52 @desc: """ +import copy import json import time from typing import Dict, List @@ -76,6 +77,7 @@ def save_context(self, details, workflow_manage): self.context[key] = form_data[key] def reset_field(self, field): + field = copy.copy(field) reset_field = ['field', 'label', 'default_value'] for f in reset_field: _value = field[f]