# HG changeset patch # User luisf # Date 1314190607 -3600 # Node ID df7551a82bbe74a00fdb021ac514208bdec468b4 # Parent 18e0709fd0d91cff0c398a9c881fbc9efad2eedf Fixed issue with "default" user list in the Author Search select. diff -r 18e0709fd0d9 -r df7551a82bbe vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb --- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Wed Aug 24 12:33:43 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Wed Aug 24 13:56:47 2011 +0100 @@ -21,7 +21,7 @@ # and at least one author # @publication.authorships.build.build_author - @author_options = [User.current] + @author_options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] end @@ -29,7 +29,7 @@ def create @project = Project.find(params[:project_id]) - @author_options = [User.current] + @author_options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] @publication = Publication.new(params[:publication]) @publication.projects << @project unless @project.nil? @@ -79,7 +79,7 @@ @edit_view = true; - @author_options = [] + @options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] @publication = Publication.find(params[:id]) @selected_bibtex_entry_type_id = @publication.bibtex_entry.entry_type end