# HG changeset patch # User luisf # Date 1380562175 -3600 # Node ID 20235e6c60c076c46929c2c794fe29ae36e11ff9 # Parent 43b303a229e124847554b78374f967960d50c86f Correctly deleting publications. diff -r 43b303a229e1 -r 20235e6c60c0 plugins/redmine_bibliography/app/controllers/publications_controller.rb --- a/plugins/redmine_bibliography/app/controllers/publications_controller.rb Mon Sep 30 18:27:45 2013 +0100 +++ b/plugins/redmine_bibliography/app/controllers/publications_controller.rb Mon Sep 30 18:29:35 2013 +0100 @@ -283,8 +283,8 @@ end def destroy - find_project_by_project_id - + find_project_by_project_id unless params[:project_id].nil? + @publication = Publication.find(params[:id]) @publication.destroy