From add9e565aa151b41eb4e7e6e8d0a548c0a9095fc Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Sun, 1 Mar 2020 00:23:07 +0100 Subject: [PATCH] fix options_filter_attribute: needs to be str since in the tool xml the values can only be specified as str also the attribute needs to be a str. currently, for instance, filtering for non-str (e.g. int) metadata values does not work. for instance this does not worked so far ``` ``` --- lib/galaxy/tools/parameters/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py index a6f830e746a..8f64a80c050 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -1913,7 +1913,7 @@ class DataToolParameter(BaseDataToolParameter): ref = getattr(ref, attribute) if call_attribute: ref = ref() - return ref + return str(ref) def to_dict(self, trans, other_values={}): # create dictionary and fill default parameters