##// END OF EJS Templates
Added two new plugin hooks to IssuesController:...
Eric Davis -
r2259:75c10a1cac41
parent child
Show More
@@ -147,6 +147,7 class IssuesController < ApplicationController
147 147 attach_files(@issue, params[:attachments])
148 148 flash[:notice] = l(:notice_successful_create)
149 149 Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added')
150 call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
150 151 redirect_to :controller => 'issues', :action => 'show', :id => @issue
151 152 return
152 153 end
@@ -193,6 +194,7 class IssuesController < ApplicationController
193 194 flash[:notice] = l(:notice_successful_update)
194 195 Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated')
195 196 end
197 call_hook(:controller_issues_edit_after_save, { :params => params, :issue => @issue, :time_entry => @time_entry, :journal => journal})
196 198 redirect_to(params[:back_to] || {:action => 'show', :id => @issue})
197 199 end
198 200 end
General Comments 0
You need to be logged in to leave comments. Login now