Revision 456:773fe1222605 vendor

View differences:

vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb
32 32
  end
33 33

  
34 34
  def index
35
    @project = Project.find(params[:project_id])
35 36
    @publications = Publication.find(:all)
36 37
  end
37 38

  
vendor/plugins/redmine_bibliography/init.rb
30 30
  end
31 31

  
32 32
  # extending the Project Menu
33
  menu :project_menu, :publications, { :controller => 'publications', :action => 'index', :path => nil }, :after => :activity, :caption => Proc.new { Setting.plugin_redmine_bibliography['menu'] },
33
  menu :project_menu, :publications, { :controller => 'publications', :action => 'index', :path => nil }, :after => :activity, :param => :project_id, :caption => Proc.new { Setting.plugin_redmine_bibliography['menu'] },
34 34
   :if => Proc.new { !Setting.plugin_redmine_bibliography['menu'].blank? }
35 35
    
36 36
end

Also available in: Unified diff