summaryrefslogtreecommitdiffstats
path: root/app/controllers/project_enumerations_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/project_enumerations_controller.rb')
-rw-r--r--app/controllers/project_enumerations_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/project_enumerations_controller.rb b/app/controllers/project_enumerations_controller.rb
index c4b48e476..d63e23641 100644
--- a/app/controllers/project_enumerations_controller.rb
+++ b/app/controllers/project_enumerations_controller.rb
@@ -15,4 +15,12 @@ class ProjectEnumerationsController < ApplicationController
redirect_to :controller => 'projects', :action => 'settings', :tab => 'activities', :id => @project
end
+ def destroy
+ @project.time_entry_activities.each do |time_entry_activity|
+ time_entry_activity.destroy(time_entry_activity.parent)
+ end
+ flash[:notice] = l(:notice_successful_update)
+ redirect_to :controller => 'projects', :action => 'settings', :tab => 'activities', :id => @project
+ end
+
end