summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-18 16:29:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-18 16:29:23 +0000
commit3c42abe07e12932a6e839ab3f635f86745cb39ed (patch)
tree38c7f2d1551b32a1ffd20488b53bc523b7ea22b3 /app
parent11cc0a48576bbbdf8c7d347409dce3555d05a92b (diff)
downloadredmine-3c42abe07e12932a6e839ab3f635f86745cb39ed.tar.gz
redmine-3c42abe07e12932a6e839ab3f635f86745cb39ed.zip
Added the ability to unassign issues with bulk edit.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@850 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb2
-rw-r--r--app/views/issues/_bulk_edit_form.rhtml4
2 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index f39c4536e..1fc7a82ff 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -350,7 +350,7 @@ class ProjectsController < ApplicationController
issues.each do |issue|
journal = issue.init_journal(User.current, params[:notes])
issue.priority = priority if priority
- issue.assigned_to = assigned_to if assigned_to
+ issue.assigned_to = assigned_to if assigned_to || params[:assigned_to_id] == 'none'
issue.category = category if category
issue.fixed_version = fixed_version if fixed_version
issue.start_date = params[:start_date] unless params[:start_date].blank?
diff --git a/app/views/issues/_bulk_edit_form.rhtml b/app/views/issues/_bulk_edit_form.rhtml
index a98c1f399..6ed947428 100644
--- a/app/views/issues/_bulk_edit_form.rhtml
+++ b/app/views/issues/_bulk_edit_form.rhtml
@@ -13,7 +13,9 @@
</p>
<p>
<label><%= l(:field_assigned_to) %>:
-<%= select_tag('assigned_to_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
+<%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option)) +
+ content_tag('option', l(:label_nobody), :value => 'none') +
+ options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
<label><%= l(:field_fixed_version) %>:
<%= select_tag('fixed_version_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.versions, :id, :name)) %></label>
</p>