OSDN Git Service

Added the ability to unassign issues with bulk edit.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 18 Oct 2007 16:29:23 +0000 (16:29 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 18 Oct 2007 16:29:23 +0000 (16:29 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@850 e93f8b46-1217-0410-a6f0-8f06a7374b81

18 files changed:
app/controllers/projects_controller.rb
app/views/issues/_bulk_edit_form.rhtml
lang/bg.yml
lang/cs.yml
lang/de.yml
lang/en.yml
lang/es.yml
lang/fr.yml
lang/he.yml
lang/it.yml
lang/ja.yml
lang/nl.yml
lang/pl.yml
lang/pt-br.yml
lang/pt.yml
lang/ro.yml
lang/sv.yml
lang/zh.yml

index f39c453..1fc7a82 100644 (file)
@@ -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?
index a98c1f3..6ed9474 100644 (file)
@@ -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>
index 249729d..15bbb52 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Неуспешен запис на %d задач
 label_theme: Тема
 label_default: По подразбиране
 label_search_titles_only: Само в заглавията
+label_nobody: nobody
index 3255333..8e5f91b 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody
index e2f8f79..dae9605 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody
index 2dda3dd..7d23e4f 100644 (file)
@@ -299,6 +299,7 @@ label_current_status: Current status
 label_new_statuses_allowed: New statuses allowed
 label_all: all
 label_none: none
+label_nobody: nobody
 label_next: Next
 label_previous: Previous
 label_used_by: Used by
index 3876003..c3392b2 100644 (file)
@@ -528,3 +528,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody
index d5941ef..4b46189 100644 (file)
@@ -299,6 +299,7 @@ label_current_status: Statut actuel
 label_new_statuses_allowed: Nouveaux statuts autorisés
 label_all: tous
 label_none: aucun
+label_nobody: personne
 label_next: Suivant
 label_previous: Précédent
 label_used_by: Utilisé par
index 736743f..106bc00 100644 (file)
@@ -525,3 +525,4 @@ enumeration_issue_priorities: עדיפות נושאים
 enumeration_doc_categories: קטגוריות מסמכים
 enumeration_activities: פעילויות (מעקב אחר זמנים)
 label_search_titles_only: Search titles only
+label_nobody: nobody
index 55ba181..8dad156 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody
index 5c33d28..ce70a4c 100644 (file)
@@ -526,3 +526,4 @@ notice_failed_to_save_issues: "%d件の問題が保存できませんでした(%
 label_theme: テーマ
 label_default: 既定
 label_search_titles_only: Search titles only
+label_nobody: nobody
index aa05904..c5928c2 100644 (file)
@@ -526,3 +526,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody
index e6b14da..23b028b 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Błąd podczas zapisu zagadnień %d z %d zaznaczo
 label_theme: Temat
 label_default: Domyślne
 label_search_titles_only: Przeszukuj tylko tytuły
+label_nobody: nobody
index d1624c0..bb335b0 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme\r
 label_default: Default\r
 label_search_titles_only: Search titles only\r
+label_nobody: nobody\r
index 2b6587e..2fcfbd3 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody
index 730fa21..08eb75b 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody
index 53549b2..17b57b5 100644 (file)
@@ -526,3 +526,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody
index 2bfc3e0..3826be6 100644 (file)
@@ -528,3 +528,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
 label_theme: Theme
 label_default: Default
 label_search_titles_only: Search titles only
+label_nobody: nobody