commit/galaxy-central: dan: When label text for a static option in a SelectToolParameter is not provided, default to using the 'value'.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/14bce81c0a30/ changeset: r5459:14bce81c0a30 user: dan date: 2011-04-26 17:25:54 summary: When label text for a static option in a SelectToolParameter is not provided, default to using the 'value'. affected #: 1 file (9 bytes) --- a/lib/galaxy/tools/parameters/basic.py Mon Apr 25 19:01:39 2011 -0400 +++ b/lib/galaxy/tools/parameters/basic.py Tue Apr 26 11:25:54 2011 -0400 @@ -576,7 +576,7 @@ value = option.get( "value" ) self.legal_values.add( value ) selected = string_as_bool( option.get( "selected", False ) ) - self.static_options.append( ( option.text, value, selected ) ) + self.static_options.append( ( option.text or value, value, selected ) ) self.is_dynamic = ( ( self.dynamic_options is not None ) or ( self.options is not None ) ) def get_options( self, trans, other_values ): if self.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)
-
Bitbucket