From bfbca7466de7e835d55d0fa2a4efffa6923e28d6 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Thu, 26 Sep 2024 15:49:08 +0200 Subject: [PATCH] Enable value restriction to look at parameter references --- lib/galaxy/workflow/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/workflow/modules.py b/lib/galaxy/workflow/modules.py index a5fadafeb28a..2cdef868d4ee 100644 --- a/lib/galaxy/workflow/modules.py +++ b/lib/galaxy/workflow/modules.py @@ -1414,7 +1414,7 @@ def restrict_options(self, step, connections: Iterable[WorkflowStepConnection], def callback(input, prefixed_name, context, **kwargs): if prefixed_name == connection.input_name and hasattr(input, "get_options"): # noqa: B023 - static_options.append(input.get_options(self.trans, {})) + static_options.append(input.get_options(self.trans, context)) visit_input_values(tool_inputs, module.state.inputs, callback) elif isinstance(module, SubWorkflowModule):