Skip to content

Commit

Permalink
Merge pull request #4834 from blankenberg/multiple-initial-single-sel…
Browse files Browse the repository at this point in the history
…ect-param

[17.09] Fix for single select list initial value when multiple options are selected by default.
  • Loading branch information
nsoranzo committed Oct 19, 2017
2 parents acc59e4 + 3b03b5b commit 9475e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/basic.py
Expand Up @@ -910,7 +910,7 @@ def get_initial_value(self, trans, other_values):
value = options[0][1]
else:
value = None
elif len(value) == 1:
elif len(value) == 1 or not self.multiple:
value = value[0]
return value

Expand Down

0 comments on commit 9475e9a

Please sign in to comment.