diff --git a/lib/galaxy/tool_util/parser/util.py b/lib/galaxy/tool_util/parser/util.py index 34f3e0943eea..47ca2896d2d5 100644 --- a/lib/galaxy/tool_util/parser/util.py +++ b/lib/galaxy/tool_util/parser/util.py @@ -66,7 +66,7 @@ def parse_tool_version_with_defaults( def boolean_is_checked(input_source: "InputSource"): nullable = input_source.get_bool("optional", False) - return input_source.get_bool("checked", None if nullable else False) + return input_source.get_bool_or_none("checked", None if nullable else False) def boolean_true_and_false_values(input_source, profile: Optional[Union[float, str]] = None) -> Tuple[str, str]: diff --git a/test/functional/tools/parameters/gx_boolean_optional.xml b/test/functional/tools/parameters/gx_boolean_optional.xml index 57a6d6f3f1be..ac2b6a3252a0 100644 --- a/test/functional/tools/parameters/gx_boolean_optional.xml +++ b/test/functional/tools/parameters/gx_boolean_optional.xml @@ -23,7 +23,7 @@ cat '$inputs' >> $inputs_json; - + diff --git a/test/functional/tools/parameters/gx_boolean_optional_checked.xml b/test/functional/tools/parameters/gx_boolean_optional_checked.xml index f1c27f98ce46..ab1d214afdb0 100644 --- a/test/functional/tools/parameters/gx_boolean_optional_checked.xml +++ b/test/functional/tools/parameters/gx_boolean_optional_checked.xml @@ -31,13 +31,13 @@ cat '$inputs' >> $inputs_json; - + - +