]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Bulk edit doesn't change the category or fixed version properties.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 10 Oct 2007 18:08:49 +0000 (18:08 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 10 Oct 2007 18:08:49 +0000 (18:08 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@820 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index 13253939a899702bed7fec2b84ba0715429a39c2..3419c58f080b1d94ed5bbe11c71d7fbe1d349cb9 100644 (file)
@@ -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?