Project

General

Profile

Patch #8757 » controller_issues_bulk_edit_after_save.patch

Julián Maestri, 2018-11-03 15:19

View differences:

app/controllers/issues_controller.rb
324 324
      else
325 325
        issue = orig_issue
326 326
      end
327
      journal = issue.init_journal(User.current, params[:notes])
327
      issue.init_journal(User.current, params[:notes])
328 328
      issue.safe_attributes = attributes
329 329
      call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue })
330 330
      if issue.save
......
334 334
      end
335 335
    end
336 336

  
337
    saved_issues.each do |issue|
338
      call_hook(:controller_issues_bulk_edit_after_save, { :params => params, :issue => issue, :journal => issue.current_journal })
339
    end
340

  
337 341
    if unsaved_issues.empty?
338 342
      flash[:notice] = l(:notice_successful_update) unless saved_issues.empty?
339 343
      if params[:follow]
(2-2/2)