]> source.dussan.org Git - redmine.git/commitdiff
Merged r2261 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 4 Nov 2009 10:07:20 +0000 (10:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 4 Nov 2009 10:07:20 +0000 (10:07 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2997 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 62102a3f6f14a114dd1d50f9e1642eee38e7aa91..7f19fdf871b173acedc416d121036eeda501f77c 100644 (file)
@@ -147,6 +147,7 @@ class IssuesController < ApplicationController
         attach_files(@issue, params[:attachments])
         flash[:notice] = l(:notice_successful_create)
         Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added')
+        call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
         redirect_to(params[:continue] ? { :action => 'new', :tracker_id => @issue.tracker } :
                                         { :action => 'show', :id => @issue })
         return
@@ -194,6 +195,7 @@ class IssuesController < ApplicationController
           flash[:notice] = l(:notice_successful_update)
           Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated')
         end
+        call_hook(:controller_issues_edit_after_save, { :params => params, :issue => @issue, :time_entry => @time_entry, :journal => journal})
         redirect_to(params[:back_to] || {:action => 'show', :id => @issue})
       end
     end