Fix for DataToolParameter where input is being filtered by dbkey.

Dynamic options had been updated to properly use 'dbkey' instead of 'build', but was missed here.
This commit is contained in:
Daniel Blankenberg
2008-05-08 15:43:46 +00:00
parent cebcc48f70
commit c803394b7a
+1 -1
View File
@@ -1038,7 +1038,7 @@ class DataToolParameter( ToolParameter ):
else:
hid = str( data.hid )
if isinstance( data.datatype, self.formats) and not data.deleted and data.state not in [data.states.ERROR]:
if self.options and filter_key == 'build' and data.get_dbkey() != filter_value:
if self.options and filter_key == 'dbkey' and data.get_dbkey() != filter_value:
continue
selected = ( value and ( data in value ) )
field.add_option( "%s: %s" % ( hid, data.name[:30] ), data.id, selected )