Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb @ 661:6246ad0f9e98 feature_36
More adjustments to ensure search results box is empty when editing, and to ensure it has a minimum width in both new and edit modes. Also a text update
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 09 Sep 2011 16:20:11 +0100 |
parents | 525f48af3f54 |
children | 865d079e5fa0 |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Fri Sep 09 16:00:34 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Fri Sep 09 16:20:11 2011 +0100 @@ -25,7 +25,7 @@ def create @project = Project.find(params[:project_id]) - @author_options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] + @author_options = [] @publication = Publication.new(params[:publication]) @publication.projects << @project unless @project.nil? @@ -75,7 +75,6 @@ @edit_view = true; - @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 @@ -85,8 +84,7 @@ def update @publication = Publication.find(params[:id]) - # todo: should be removed? - @author_options = [["#{User.current.name} (#{User.current.mail})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] + @author_options = [] logger.error { "INSIDE THE UPDATE ACTION IN THE PUBLICATION CONTROLLER" }