|
|
|
@ -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 |
|
|
|
|