From 2fc820917139ecb3cca5ff3e495f5884325328ba Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Mon, 30 Sep 2024 10:47:31 +0200 Subject: [PATCH] Enable filters on from_url options --- lib/galaxy/tools/parameters/dynamic_options.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/tools/parameters/dynamic_options.py b/lib/galaxy/tools/parameters/dynamic_options.py index 42e177a58042..e354c93eabb5 100644 --- a/lib/galaxy/tools/parameters/dynamic_options.py +++ b/lib/galaxy/tools/parameters/dynamic_options.py @@ -833,6 +833,9 @@ def get_field_by_name_for_value(self, field_name, value, trans, other_values): return rval def get_options(self, trans, other_values): + + rval = [] + def to_triple(values): if len(values) == 2: return [str(values[0]), str(values[1]), False] @@ -875,8 +878,7 @@ def to_triple(values): data = [] # We only support the very specific ["name", "value", "selected"] format for now. - return [to_triple(d) for d in data] - rval = [] + rval = [to_triple(d) for d in data] if ( self.file_fields is not None or self.tool_data_table is not None