details: http://www.bx.psu.edu/hg/galaxy/rev/ab319f94495c changeset: 3622:ab319f94495c user: rc date: Thu Apr 08 16:21:53 2010 -0400 description: forms: fixed a bug in default values diffstat: lib/galaxy/model/__init__.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 196b3b8bb6d8 -r ab319f94495c lib/galaxy/model/__init__.py --- a/lib/galaxy/model/__init__.py Thu Apr 08 16:09:58 2010 -0400 +++ b/lib/galaxy/model/__init__.py Thu Apr 08 16:21:53 2010 -0400 @@ -1349,7 +1349,7 @@ 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':