Added the ability to unassign issues with bulk edit.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@850 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-10-18 16:29:23 +00:00
parent 11cc0a4857
commit 3c42abe07e
18 changed files with 20 additions and 2 deletions

View 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?

View 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>

View File

@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Неуспешен запис на %d задач
label_theme: Тема
label_default: По подразбиране
label_search_titles_only: Само в заглавията
label_nobody: nobody

View 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

View 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

View 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

View 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

View 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

View File

@ -525,3 +525,4 @@ enumeration_issue_priorities: עדיפות נושאים
enumeration_doc_categories: קטגוריות מסמכים
enumeration_activities: פעילויות (מעקב אחר זמנים)
label_search_titles_only: Search titles only
label_nobody: nobody

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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