Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb @ 620:df7551a82bbe feature_36
Fixed issue with "default" user list in the Author Search select.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 24 Aug 2011 13:56:47 +0100 |
parents | 712324fee0c0 |
children | e2663e0bd5a6 |
line wrap: on
line diff
--- 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