summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-10 18:08:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-10 18:08:49 +0000
commit45203143c15d3909e1cd343fc59ee21cc5f52a86 (patch)
tree85a79eead09d88c4ab6b82f43afa36be35549eff /app
parent6b63889fcd126d712f2d140c19faadfe691c8844 (diff)
downloadredmine-45203143c15d3909e1cd343fc59ee21cc5f52a86.tar.gz
redmine-45203143c15d3909e1cd343fc59ee21cc5f52a86.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 13253939a..3419c58f0 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -342,12 +342,16 @@ class ProjectsController < ApplicationController
if request.post?
priority = Enumeration.find_by_id(params[:priority_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])
unsaved_issue_ids = []
issues.each do |issue|
issue.init_journal(User.current, params[:notes])
issue.priority = priority if priority
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.due_date = params[:due_date] unless params[:due_date].blank?
issue.done_ratio = params[:done_ratio] unless params[:done_ratio].blank?