fix: After adding form collection at the loop node, the variables from subsequent nodes in the loop become empty (#4351)

v3.2
shaohuzhang1 2025-11-12 10:43:52 +08:00 committed by GitHub
parent a6a0f56d88
commit 523164f319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -226,11 +226,14 @@ class BaseLoopNode(ILoopNode):
def save_context(self, details, workflow_manage):
self.context['loop_context_data'] = details.get('loop_context_data')
self.context['loop_answer_data'] = details.get('loop_answer_data')
self.context['loop_node_data'] = details.get('loop_node_data')
self.context['result'] = details.get('result')
self.context['params'] = details.get('params')
self.context['run_time'] = details.get('run_time')
self.context['index'] = details.get('current_index')
self.context['item'] = details.get('current_item')
for key, value in (details.get('loop_context_data') or {}).items():
self.context[key] = value
self.answer_text = ""
def get_answer_list(self) -> List[Answer] | None: