Project

General

Profile

Patch #29378 ยป call_hooks_patch_project_issue_destroy.patch

Jonas Ineveld, van, 2018-08-13 14:32

View differences:

app/controllers/issues_controller.rb (working copy)
392 392
    @issues.each do |issue|
393 393
      begin
394 394
        issue.reload.destroy
395
	call_hook(:controller_issues_destroy, { :params => params, :issue => issue})
395 396
      rescue ::ActiveRecord::RecordNotFound # raised by #reload if issue no longer exists
396 397
        # nothing to do, issue was already deleted (eg. by a parent)
397 398
      end
app/controllers/projects_controller.rb (working copy)
91 91
      unless User.current.admin?
92 92
        @project.add_default_member(User.current)
93 93
      end
94
      respond_to do |format|
94
      call_hook(:controller_projects_new_after_save, { :params => params, :project => @project})
95
	respond_to do |format|
95 96
        format.html {
96 97
          flash[:notice] = l(:notice_successful_create)
97 98
          if params[:continue]
    (1-1/1)