Mercurial > hg > soundsoftware-site
changeset 607:bdaabf6ee591 feature_36
added the @author_options array to the create action so that the validations still work
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 18 Aug 2011 17:44:12 +0100 |
parents | 63f92a52a4eb |
children | c7559c3a8d03 |
files | vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Thu Aug 18 17:15:39 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Thu Aug 18 17:44:12 2011 +0100 @@ -21,13 +21,15 @@ @project_id = params[:project_id] @current_user = User.current - # TODO - something more interesting here - @author_options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] + @author_options = Authorship.like_unique(User.name).find(:all, :limit => 100) end def create find_project_by_project_id + @author_options = Authorship.like_unique(User.name).find(:all, :limit => 100) + + @publication = Publication.new(params[:publication]) # @project = Project.find(params[:project_id])