[hg] galaxy 2422: Fix for DrillDownParameter when no option is s...
details: http://www.bx.psu.edu/hg/galaxy/rev/a07e84e73b45 changeset: 2422:a07e84e73b45 user: Dan Blankenberg <dan@bx.psu.edu> date: Thu May 28 13:58:56 2009 -0400 description: Fix for DrillDownParameter when no option is selected and saved in worflow editing. 1 file(s) affected in this change: lib/galaxy/tools/parameters/basic.py diffs (15 lines): diff -r 186fcb977e75 -r a07e84e73b45 lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py Thu May 28 11:10:44 2009 -0400 +++ b/lib/galaxy/tools/parameters/basic.py Thu May 28 13:58:56 2009 -0400 @@ -947,7 +947,10 @@ def from_html( self, value, trans=None, other_values={} ): if self.need_late_validation( trans, other_values ): if self.multiple: - value = value.split( "\n" ) + if value == '': #No option selected + value = None + else: + value = value.split( "\n" ) return UnvalidatedValue( value ) if not value: return None if not isinstance( value, list ):
participants (1)
-
Greg Von Kuster