mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
forms: fixed a bug in default values
This commit is contained in:
@@ -1349,7 +1349,7 @@ class FormDefinition( object ):
|
||||
value = False
|
||||
else:
|
||||
# Set other field types to the default value of the field
|
||||
value = field['default']
|
||||
value = field.get('default', '')
|
||||
# create the field widget
|
||||
field_widget = eval( field[ 'type' ] )( field_name )
|
||||
if field[ 'type' ] == 'TextField':
|
||||
|
||||
Reference in New Issue
Block a user