# HG changeset patch # User luisf # Date 1313685852 -3600 # Node ID bdaabf6ee5914c721ddc406e2d342f2e3d9a8897 # Parent 63f92a52a4ebed3c05f5a8b6eb5a83c9a246fca0 added the @author_options array to the create action so that the validations still work diff -r 63f92a52a4eb -r bdaabf6ee591 vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb --- 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])