commit/galaxy-central: greg: Eliminate the problematic "Select one" option from select fields.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/a3c018044538/ Changeset: a3c018044538 User: greg Date: 2013-10-02 22:44:48 Summary: Eliminate the problematic "Select one" option from select fields. Affected #: 1 file diff -r e262ddfe44c34200bac86dfab64c7acbdc5c54a3 -r a3c0180445385eb708e03304769599a8c9cc2760 lib/galaxy/web/form_builder.py --- a/lib/galaxy/web/form_builder.py +++ b/lib/galaxy/web/form_builder.py @@ -756,13 +756,6 @@ refresh_on_change=refresh_on_change, refresh_on_change_values=refresh_on_change_values, size=size ) - if display is None and initial_value == 'none': - # Only insert an initial "Select one" option if we are not displaying check boxes - # or radio buttons and we have not received an initial_value other than 'none'. - if selected_value == initial_value: - select_field.add_option( 'Select one', initial_value, selected=True ) - else: - select_field.add_option( 'Select one', initial_value ) for obj in objs: if label_attr == 'self': # Each obj is a string 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)
-
commits-noreply@bitbucket.org