]> source.dussan.org Git - redmine.git/commitdiff
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 f39c4536e5d69ea05adc2db8ef4b0ce73f8caf14..1fc7a82ff203852f1cf43d711c2fe4abaddc2ef2 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 a98c1f399a759cec9407d16f54b12f1ea6bb1ad0..6ed9474288e72bad6af1bff11eed9cb0f604cb2a 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 249729db5c293d30b37b03779b23dd5436bd7132..15bbb5239485592f0a7560a5aa0586e54fea60ce 100644 (file)
@@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Неуспешен запис на %d задач
 label_theme: Тема
 label_default: По подразбиране
 label_search_titles_only: Само в заглавията
+label_nobody: nobody
index 325533353533031e7c0fd6270bac2f015abe1bce..8e5f91b411876cb8680b1abd1022fe942fd23cd1 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 e2f8f79009779f680af39f674ef7275e55e80bc8..dae960579deb65d7f99169a71b521e3425cdfe34 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 2dda3dd16879ce430a92c1a16d57d01396e85472..7d23e4fbe1f2ee5a1d80da7cbc1290245519e0fd 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 387600346068f8057ca9a4479125fb3b65a2931e..c3392b2d43e92bade8a564b36611721922c6ac07 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 d5941ef7f4750ae22dfb5cb0e9bce6608230dba4..4b46189f54d6b0844c2ac07b90569d8aa9e233ff 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 736743f7499a403d6f8c0e69db45d1af8f1c6f38..106bc00963af596b94568adfc06ac6931e4bf2af 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 55ba18109561a3e968b314f757d775faa5f3b0dc..8dad1566ae3adb714b47b570b437c8b44ad664ff 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 5c33d2826c9dd5b49c9247766502eebf5ef345b0..ce70a4c3218dd35b4e76c8b8441b3ef9ea006dc1 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 aa05904ec88678eb0baa5a7aa4df8fa7a97746fd..c5928c23c4d7f011a12876e0187f19aca112f2e4 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 e6b14da182d01bd98699273a90dacca5c48c055f..23b028ba6306a0ca65111555a54f8b1d42fafa1c 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 d1624c0201b3c90eb295fcf531de50ef7505fed6..bb335b0822081ce4d5bfbd98b692e8afd40451c7 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 2b6587e74d282946ec7cb829b56cf59cbd74e7a6..2fcfbd334490fd873869a4b739ac9a15c079fa7b 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 730fa2148c282071a50b121876ff651eca12d6c0..08eb75b0b159441cbe6b4f3e606e5ea5265f9631 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 53549b244c9807c0b69d93de73651695f05e1e51..17b57b5dc28f6d5be65c0e3f7225e9ceb8abfd0f 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 2bfc3e065b3a846859a5363cb5465af1530c4e31..3826be6d40ab5788073474e98f6b73a83138389b 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