Skip to content

Commit

Permalink
bugfix: 修复子流程节点文本下拉框勾选为变量时的值传递问题
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Nov 8, 2023
1 parent dce13b0 commit abfc536
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ def execute(self, data, parent_data):
and self.id in parent_constants[raw_constant_value]["source_info"]
and key in parent_constants[raw_constant_value]["source_info"][self.id]
):
constant["value"] = context_mappings[raw_subprocess_inputs[key]].value
variable = context_mappings[raw_subprocess_inputs[key]]
# 需要针对文本值下拉框进行特殊处理
constant["value"] = (
variable.value["info_value"] if variable.code == "text_value_select" else variable.value
)
elif constant.get("need_render", True) and key in parsed_subprocess_inputs:
constant["value"] = parsed_subprocess_inputs[key]
self.logger.info(f'subprocess parsed constants: {pipeline_tree.get("constants", {})}')
Expand Down

0 comments on commit abfc536

Please sign in to comment.