Mercurial > hg > soundsoftware-site
changeset 621:95a7d6187454 feature_36
Merge from 620:4ede44d53f76
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 24 Aug 2011 13:59:10 +0100 |
parents | df7551a82bbe (diff) 4ede44d53f76 (current diff) |
children | e9cdf1e676a8 |
files | |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Wed Aug 24 13:38:31 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Wed Aug 24 13:59:10 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