mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-11 19:53:07 +00:00
Adds :controller_issues_bulk_edit_before_save hook. #1677
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1740 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
879a29b8cf
commit
77d0a96289
@ -234,6 +234,7 @@ class IssuesController < ApplicationController
|
||||
issue.start_date = params[:start_date] unless params[:start_date].blank?
|
||||
issue.due_date = params[:due_date] unless params[:due_date].blank?
|
||||
issue.done_ratio = params[:done_ratio] unless params[:done_ratio].blank?
|
||||
call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue })
|
||||
# Don't save any change to the issue if the user is not authorized to apply the requested status
|
||||
if (status.nil? || (issue.status.new_status_allowed_to?(status, current_role, issue.tracker) && issue.status = status)) && issue.save
|
||||
# Send notification for each issue (if changed)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user