commit/galaxy-central: dan: Fix for handling unvalidated values in select lists. Addresses https://trello.com/c/5DKHp4ck
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/819a7675a49e/ Changeset: 819a7675a49e User: dan Date: 2014-09-15 20:58:14 Summary: Fix for handling unvalidated values in select lists. Addresses https://trello.com/c/5DKHp4ck Affected #: 1 file diff -r 344edd250cc9bd38b3370e4be932daa9085e7b6d -r 819a7675a49ea44a9dd2207323635604c7fc16ec lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -794,6 +794,8 @@ if value is not None: if not isinstance( value, list ): value = [ value ] + # We could have an unvalidated value here when e.g. running a workflow. + value = [ val.value if isinstance( val, UnvalidatedValue ) else val for val in value ] field = form_builder.SelectField( self.name, self.multiple, self.display, self.refresh_on_change, refresh_on_change_values=self.refresh_on_change_values ) options = self.get_options( trans, context ) for text, optval, selected in options: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org