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:
parent
11cc0a4857
commit
3c42abe07e
|
@ -350,7 +350,7 @@ class ProjectsController < ApplicationController
|
||||||
issues.each do |issue|
|
issues.each do |issue|
|
||||||
journal = issue.init_journal(User.current, params[:notes])
|
journal = issue.init_journal(User.current, params[:notes])
|
||||||
issue.priority = priority if priority
|
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.category = category if category
|
||||||
issue.fixed_version = fixed_version if fixed_version
|
issue.fixed_version = fixed_version if fixed_version
|
||||||
issue.start_date = params[:start_date] unless params[:start_date].blank?
|
issue.start_date = params[:start_date] unless params[:start_date].blank?
|
||||||
|
|
|
@ -13,7 +13,9 @@
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label><%= l(:field_assigned_to) %>:
|
<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) %>:
|
<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>
|
<%= select_tag('fixed_version_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.versions, :id, :name)) %></label>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Неуспешен запис на %d задач
|
||||||
label_theme: Тема
|
label_theme: Тема
|
||||||
label_default: По подразбиране
|
label_default: По подразбиране
|
||||||
label_search_titles_only: Само в заглавията
|
label_search_titles_only: Само в заглавията
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -299,6 +299,7 @@ label_current_status: Current status
|
||||||
label_new_statuses_allowed: New statuses allowed
|
label_new_statuses_allowed: New statuses allowed
|
||||||
label_all: all
|
label_all: all
|
||||||
label_none: none
|
label_none: none
|
||||||
|
label_nobody: nobody
|
||||||
label_next: Next
|
label_next: Next
|
||||||
label_previous: Previous
|
label_previous: Previous
|
||||||
label_used_by: Used by
|
label_used_by: Used by
|
||||||
|
|
|
@ -528,3 +528,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -299,6 +299,7 @@ label_current_status: Statut actuel
|
||||||
label_new_statuses_allowed: Nouveaux statuts autorisés
|
label_new_statuses_allowed: Nouveaux statuts autorisés
|
||||||
label_all: tous
|
label_all: tous
|
||||||
label_none: aucun
|
label_none: aucun
|
||||||
|
label_nobody: personne
|
||||||
label_next: Suivant
|
label_next: Suivant
|
||||||
label_previous: Précédent
|
label_previous: Précédent
|
||||||
label_used_by: Utilisé par
|
label_used_by: Utilisé par
|
||||||
|
|
|
@ -525,3 +525,4 @@ enumeration_issue_priorities: עדיפות נושאים
|
||||||
enumeration_doc_categories: קטגוריות מסמכים
|
enumeration_doc_categories: קטגוריות מסמכים
|
||||||
enumeration_activities: פעילויות (מעקב אחר זמנים)
|
enumeration_activities: פעילויות (מעקב אחר זמנים)
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -526,3 +526,4 @@ notice_failed_to_save_issues: "%d件の問題が保存できませんでした(%
|
||||||
label_theme: テーマ
|
label_theme: テーマ
|
||||||
label_default: 既定
|
label_default: 既定
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -526,3 +526,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Błąd podczas zapisu zagadnień %d z %d zaznaczo
|
||||||
label_theme: Temat
|
label_theme: Temat
|
||||||
label_default: Domyślne
|
label_default: Domyślne
|
||||||
label_search_titles_only: Przeszukuj tylko tytuły
|
label_search_titles_only: Przeszukuj tylko tytuły
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -525,3 +525,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -526,3 +526,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
|
@ -528,3 +528,4 @@ notice_failed_to_save_issues: "Failed to save %d issue(s) on %d selected: %s."
|
||||||
label_theme: Theme
|
label_theme: Theme
|
||||||
label_default: Default
|
label_default: Default
|
||||||
label_search_titles_only: Search titles only
|
label_search_titles_only: Search titles only
|
||||||
|
label_nobody: nobody
|
||||||
|
|
Loading…
Reference in New Issue