Patch #5714 » controller_issues_bulk_edit_after_save.patch
app/controllers/issues_controller.rb 2010-08-21 17:23:38.000000000 +0300 | ||
---|---|---|
236 | 236 |
issue.reload |
237 | 237 |
journal = issue.init_journal(User.current, params[:notes]) |
238 | 238 |
issue.safe_attributes = attributes |
239 |
call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue }) |
|
239 |
call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue, :journal => journal })
|
|
240 | 240 |
unless issue.save |
241 | 241 |
# Keep unsaved issue ids to display them in flash error |
242 | 242 |
unsaved_issue_ids << issue.id |
243 |
else |
|
244 |
call_hook(:controller_issues_bulk_edit_after_save, { :params => params, :issue => issue, :journal => journal }) |
|
243 | 245 |
end |
244 | 246 |
end |
245 | 247 |
set_flash_from_bulk_issue_save(@issues, unsaved_issue_ids) |
- « Previous
- 1
- 2
- Next »