Feature #9226 » changeset_r9e80ae182e30c58857c8e30260f7fc3788dd7597.diff
| app/controllers/issue_statuses_controller.rb | ||
|---|---|---|
|
def create
|
||
|
@issue_status = IssueStatus.new(params[:issue_status])
|
||
|
if @issue_status.save
|
||
|
if params[:add_to_all_workflows]
|
||
|
begin
|
||
|
Workflow.transaction do
|
||
|
Tracker.all.each do |tracker|
|
||
|
Role.all.each do |role|
|
||
|
(IssueStatus.all - [@issue_status]).each do |status|
|
||
|
Workflow.create! :tracker_id => tracker.id, :old_status => @issue_status, :new_status => status, :role => role # from
|
||
|
Workflow.create! :tracker_id => tracker.id, :old_status => status, :new_status => @issue_status, :role => role # to
|
||
|
end
|
||
|
Workflow.create! :tracker_id => tracker.id, :old_status => @issue_status, :new_status => @issue_status, :role => role # self-to-self
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
rescue
|
||
|
flash[:warning] = l(:error_unable_add_to_workflows)
|
||
|
end
|
||
|
end
|
||
|
flash[:notice] = l(:notice_successful_create)
|
||
|
redirect_to :action => 'index'
|
||
|
else
|
||
| app/views/issue_statuses/_form.rhtml | ||
|---|---|---|
|
<%= error_messages_for 'issue_status' %>
|
||
|
<div class="box">
|
||
|
<div class="box tabular">
|
||
|
<!--[form:issue_status]-->
|
||
|
<p><label for="issue_status_name"><%=l(:field_name)%><span class="required"> *</span></label>
|
||
|
<%= text_field 'issue_status', 'name' %></p>
|
||
| app/views/issue_statuses/new.rhtml | ||
|---|---|---|
|
<h2><%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses', :action => 'index' %> » <%=l(:label_issue_status_new)%></h2>
|
||
|
<% form_tag({:action => 'create'}, :class => "tabular") do %>
|
||
|
<% form_tag({:action => 'create'}) do %>
|
||
|
<%= render :partial => 'form' %>
|
||
|
<p><label><%= check_box_tag 'add_to_all_workflows', 1, true %> <%= l(:label_add_to_all_workflows) %></label></p>
|
||
|
<%= submit_tag l(:button_create) %>
|
||
|
<% end %>
|
||
| config/locales/bg.yml | ||
|---|---|---|
|
field_assigned_to_role: Member of Role
|
||
|
button_edit_associated_wikipage: "Edit associated Wiki page: {{page_title}}"
|
||
|
text_are_you_sure_with_children: Delete issue and all child issues?
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/bs.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/ca.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/cs.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/da.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/de.yml | ||
|---|---|---|
|
label_git_report_last_commit: Bericht des letzten Commits für Dateien und Verzeichnisse
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Zu allen Workflows hinzufügen
|
||
|
error_unable_add_to_workflows: Der Status konnte nicht zu allen Workflows hinzugefügt werden. Bitte fügen Sie ihn manuell hinzu.
|
||
| config/locales/el.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/en-GB.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/en.yml | ||
|---|---|---|
|
error_workflow_copy_source: 'Please select a source tracker or role'
|
||
|
error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
|
||
|
error_unable_delete_issue_status: 'Unable to delete issue status'
|
||
|
error_unable_add_to_workflows: 'Unable to add issue status to all workflows. Please add it manually.'
|
||
|
error_unable_to_connect: "Unable to connect (%{value})"
|
||
|
warning_attachments_not_saved: "%{count} file(s) could not be saved."
|
||
|
|
||
| ... | ... | |
|
label_issue_status: Issue status
|
||
|
label_issue_status_plural: Issue statuses
|
||
|
label_issue_status_new: New status
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
label_issue_category: Issue category
|
||
|
label_issue_category_plural: Issue categories
|
||
|
label_issue_category_new: New category
|
||
| config/locales/es.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/eu.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/fa.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/fi.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/fr.yml | ||
|---|---|---|
|
label_git_report_last_commit: Afficher le dernier commit des fichiers et répertoires
|
||
|
text_scm_config: Vous pouvez configurer les commandes des SCM dans config/configuration.yml. Redémarrer l'application après modification.
|
||
|
text_scm_command_not_available: Ce SCM n'est pas disponible. Vérifier les paramètres dans la section administration.
|
||
|
label_add_to_all_workflows: Ajouter à tous les workflows
|
||
|
error_unable_add_to_workflows: Impossible d'ajouter le statut à tous les workflows. Veuillez l'ajouter manuellement.
|
||
| config/locales/gl.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/he.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/hr.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/hu.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/id.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/it.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/ja.yml | ||
|---|---|---|
|
permission_set_issues_private: チケットをプライベートに設定
|
||
|
label_issues_visibility_public: プライベートチケット以外
|
||
|
text_issues_destroy_descendants_confirmation: %{count}個の子チケットも削除されます。
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/ko.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/lt.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/lv.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/mk.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/mn.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/nl.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/no.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/pl.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/pt-BR.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/pt.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/ro.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/ru.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/sk.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/sl.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/sr-YU.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/sr.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/sv.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/th.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/tr.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/uk.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/vi.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/zh-TW.yml | ||
|---|---|---|
|
enumeration_doc_categories: 文件分類
|
||
|
enumeration_activities: 活動 (時間追蹤)
|
||
|
enumeration_system_activity: 系統活動
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||
| config/locales/zh.yml | ||
|---|---|---|
|
label_git_report_last_commit: Report last commit for files and directories
|
||
|
text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
|
||
|
label_add_to_all_workflows: Add to all workflows
|
||
|
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please add it manually.
|
||