# HG changeset patch # User luisf # Date 1354199371 0 # Node ID 116346b9cab4849fd4fb9f4d54bd66afee0f468b # Parent 9b7f99b7cb1404da475fc85cf8bd8bf8e127be39 Fixes small bug that prevented the email domain from being created in the autocomplete_for_authors action. diff -r 9b7f99b7cb14 -r 116346b9cab4 vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb --- a/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Wed Nov 28 19:32:31 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Thu Nov 29 14:29:31 2012 +0000 @@ -38,19 +38,11 @@ logger.error { "DEBUG --> #{result}" } email_bit = result.mail.partition('@')[2] - email_bit = "(@#{email_bit})" unless email_bit = "" + email_bit = "(@#{email_bit})" unless email_bit == "" ["#{result.name} #{email_bit}", "#{result.class.to_s}_#{result.id.to_s}"] end -# @results.each do |result| -# email_bit = result.mail.partition('@')[2] -# if email_bit != "": -# email_bit = "(@#{email_bit})" -# end -# @author_options << ["#{result.name} #{email_bit}", "#{result.class.to_s}_#{#result.id.to_s}"] -# end - s = select_tag( form_tag_name(object_name, :author_search_results), options_for_select(author_options), { :id => form_tag_id(object_name, :author_search_results), :size => 3} ) s << observe_field( form_tag_id(object_name, :author_search_results), :on => 'click', :function => "alert('Element changed')", :with => 'q') else