redirecting to destroy info if not deleting

pull/918/head
Jonas Heinrich 11 years ago committed by Hagen Schink
parent 735f50b6f5
commit 7b85175427
  1. 10
      app/controllers/projects_controller.rb

@ -198,9 +198,13 @@ class ProjectsController < ApplicationController
if params[:confirm]
@project_to_destroy.destroy
end
respond_to do |format|
format.html { redirect_to :controller => '/admin', :action => 'projects' }
respond_to do |format|
format.html { redirect_to :controller => '/admin', :action => 'projects' }
end
else
flash[:error] = l(:notice_project_not_deleted)
redirect_to confirm_destroy_project_path(@project)
return
end
hide_project_in_layout

Loading…
Cancel
Save