##// 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 attach_files(@issue, params[:attachments])
147 attach_files(@issue, params[:attachments])
148 flash[:notice] = l(:notice_successful_create)
148 flash[:notice] = l(:notice_successful_create)
149 Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added')
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 redirect_to :controller => 'issues', :action => 'show', :id => @issue
151 redirect_to :controller => 'issues', :action => 'show', :id => @issue
151 return
152 return
152 end
153 end
@@ -193,6 +194,7 class IssuesController < ApplicationController
193 flash[:notice] = l(:notice_successful_update)
194 flash[:notice] = l(:notice_successful_update)
194 Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated')
195 Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated')
195 end
196 end
197 call_hook(:controller_issues_edit_after_save, { :params => params, :issue => @issue, :time_entry => @time_entry, :journal => journal})
196 redirect_to(params[:back_to] || {:action => 'show', :id => @issue})
198 redirect_to(params[:back_to] || {:action => 'show', :id => @issue})
197 end
199 end
198 end
200 end
General Comments 0
You need to be logged in to leave comments. Login now