details: http://www.bx.psu.edu/hg/galaxy/rev/615a0bcf870b changeset: 2474:615a0bcf870b user: rc date: Fri Jul 10 15:24:01 2009 -0400 description: Fixed another bug in saving special characters in forms 1 file(s) affected in this change: lib/galaxy/web/controllers/forms.py diffs (25 lines): diff -r f7bdfd409b7d -r 615a0bcf870b lib/galaxy/web/controllers/forms.py --- a/lib/galaxy/web/controllers/forms.py Fri Jul 10 14:50:17 2009 -0400 +++ b/lib/galaxy/web/controllers/forms.py Fri Jul 10 15:24:01 2009 -0400 @@ -152,7 +152,7 @@ def __get_field(self, params, index): name = util.restore_text( params.get( 'field_name_%i' % index, None ) ) helptext = util.restore_text( params.get( 'field_helptext_%i' % index, None ) ) - required = util.restore_text( params.get( 'field_required_%i' % index, False ) ) + required = params.get( 'field_required_%i' % index, False ) field_type = util.restore_text( params.get( 'field_type_%i' % index, None ) ) if field_type == 'SelectField': selectlist = self.__get_selectbox_options(params, index) @@ -172,10 +172,10 @@ ctr=0 sb_options = [] while True: - option = util.restore_text( params.get( 'field_'+str(index)+'_option_'+str(ctr), None ) ) + option = params.get( 'field_'+str(index)+'_option_'+str(ctr), None ) ctr = ctr+1 if option: - sb_options.append(option) + sb_options.append(util.restore_text(option)) else: return sb_options def __get_saved_form(self, fd):