Patch #5714 » controller_issues_bulk_edit_after_save.patch
app/controllers/issues_controller.rb 2010-06-20 16:20:48.000000000 +0300 | ||
---|---|---|
260 | 260 |
issue.due_date = params[:due_date] unless params[:due_date].blank? |
261 | 261 |
issue.done_ratio = params[:done_ratio] unless params[:done_ratio].blank? |
262 | 262 |
issue.custom_field_values = custom_field_values if custom_field_values && !custom_field_values.empty? |
263 |
call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue }) |
|
263 |
call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue, :journal => journal })
|
|
264 | 264 |
# Don't save any change to the issue if the user is not authorized to apply the requested status |
265 | 265 |
unless (status.nil? || (issue.new_statuses_allowed_to(User.current).include?(status) && issue.status = status)) && issue.save |
266 | 266 |
# Keep unsaved issue ids to display them in flash error |
267 | 267 |
unsaved_issue_ids << issue.id |
268 |
else |
|
269 |
call_hook(:controller_issues_bulk_edit_after_save, { :params => params, :issue => issue, :journal => journal }) |
|
268 | 270 |
end |
269 | 271 |
end |
270 | 272 |
if unsaved_issue_ids.empty? |