Skip to content

Commit d80c1fc

Browse files
authored
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 (#5055)
1 parent 58fe5ed commit d80c1fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/application/flow/step_node/form_node/impl/base_form_node.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@date:2024/11/4 14:52
77
@desc:
88
"""
9+
import copy
910
import json
1011
import time
1112
from typing import Dict, List
@@ -76,6 +77,7 @@ def save_context(self, details, workflow_manage):
7677
self.context[key] = form_data[key]
7778

7879
def reset_field(self, field):
80+
field = copy.copy(field)
7981
reset_field = ['field', 'label', 'default_value']
8082
for f in reset_field:
8183
_value = field[f]

0 commit comments

Comments
 (0)