Fixed: Bulk edit doesn't change the category or fixed version properties.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@820 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6b63889fcd
commit
45203143c1
|
@ -342,12 +342,16 @@ class ProjectsController < ApplicationController
|
||||||
if request.post?
|
if request.post?
|
||||||
priority = Enumeration.find_by_id(params[:priority_id])
|
priority = Enumeration.find_by_id(params[:priority_id])
|
||||||
assigned_to = User.find_by_id(params[:assigned_to_id])
|
assigned_to = User.find_by_id(params[:assigned_to_id])
|
||||||
|
category = @project.issue_categories.find_by_id(params[:category_id])
|
||||||
|
fixed_version = @project.versions.find_by_id(params[:fixed_version_id])
|
||||||
issues = @project.issues.find_all_by_id(params[:issue_ids])
|
issues = @project.issues.find_all_by_id(params[:issue_ids])
|
||||||
unsaved_issue_ids = []
|
unsaved_issue_ids = []
|
||||||
issues.each do |issue|
|
issues.each do |issue|
|
||||||
issue.init_journal(User.current, params[:notes])
|
issue.init_journal(User.current, params[:notes])
|
||||||
issue.priority = priority if priority
|
issue.priority = priority if priority
|
||||||
issue.assigned_to = assigned_to if assigned_to
|
issue.assigned_to = assigned_to if assigned_to
|
||||||
|
issue.category = category if category
|
||||||
|
issue.fixed_version = fixed_version if fixed_version
|
||||||
issue.start_date = params[:start_date] unless params[:start_date].blank?
|
issue.start_date = params[:start_date] unless params[:start_date].blank?
|
||||||
issue.due_date = params[:due_date] unless params[:due_date].blank?
|
issue.due_date = params[:due_date] unless params[:due_date].blank?
|
||||||
issue.done_ratio = params[:done_ratio] unless params[:done_ratio].blank?
|
issue.done_ratio = params[:done_ratio] unless params[:done_ratio].blank?
|
||||||
|
|
Loading…
Reference in New Issue