Project

General

Profile

Feature #9226 » changeset_a34bffe750ce27d8cda5fa83e60f5ff5525054fd.diff

Yehuda Katz, 2012-10-12 21:53

View differences:

app/controllers/issue_statuses_controller.rb
def create
@issue_status = IssueStatus.new(params[:issue_status])
if request.post? && @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
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/new.html.erb
<%= labelled_form_for @issue_status do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %>
<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/ar.yml
label_cross_project_tree: مع شجرة المشروع
label_cross_project_hierarchy: مع التسلسل الهرمي للمشروع
label_cross_project_system: مع جميع المشاريع
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/bg.yml
description_date_from: Въведете начална дата
description_date_to: Въведете крайна дата
text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/bs.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/ca.yml
label_cross_project_tree: "Amb l'arbre del projecte"
label_cross_project_hierarchy: "Amb la jerarquia del projecte"
label_cross_project_system: "Amb tots els projectes"
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/cs.yml
label_cross_project_tree: Se stromem projektu
label_cross_project_hierarchy: S hierarchií projektu
label_cross_project_system: Se všemi projekty
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/da.yml
label_cross_project_tree: Med projekttræ
label_cross_project_hierarchy: Med projekthierarki
label_cross_project_system: Med alle projekter
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/de.yml
label_cross_project_tree: Mit Projektbaum
label_cross_project_hierarchy: Mit Projekthierarchie
label_cross_project_system: Mit allen Projekten
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/el.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/en-GB.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
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})"
error_attachment_too_big: "This file cannot be uploaded because it exceeds the maximum allowed file size (%{max_size})"
error_session_expired: "Your session has expired. Please login again."
......
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_cross_project_tree: Con el árbol del proyecto
label_cross_project_hierarchy: Con la jerarquía del proyecto
label_cross_project_system: Con todos los proyectos
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/et.yml
label_cross_project_tree: "projektipuuga"
label_cross_project_hierarchy: "projektihierarhiaga"
label_cross_project_system: "kõigi projektidega"
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/eu.yml
label_cross_project_tree: Proiektu zuhaitzarekin
label_cross_project_hierarchy: Proiektu Hierarkiarekin
label_cross_project_system: Proiektu guztiekin
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/fa.yml
label_cross_project_tree: با درخت پروژه
label_cross_project_hierarchy: با رشته پروژه‌ها
label_cross_project_system: با همه پروژه‌ها
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/fi.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/fr.yml
setting_repositories_encodings: Encodages des fichiers et des dépôts
label_search_for_watchers: Rechercher des observateurs
text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et underscore sont autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.'
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/gl.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/he.yml
label_cross_project_tree: עם עץ הפרויקט
label_cross_project_hierarchy: עם היררכית הפרויקטים
label_cross_project_system: עם כל הפרויקטים
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/hr.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/hu.yml
label_cross_project_tree: Projekt fával
label_cross_project_hierarchy: Projekt hierarchiával
label_cross_project_system: Minden projekttel
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/id.yml
label_cross_project_tree: Dengan pohon proyek
label_cross_project_hierarchy: Dengan hirarki proyek
label_cross_project_system: Dengan semua proyek
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/it.yml
label_cross_project_tree: Con progetto padre
label_cross_project_hierarchy: Con gerarchia progetto
label_cross_project_system: Con tutti i progetti
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/ja.yml
label_cross_project_tree: プロジェクトツリー単位
label_cross_project_hierarchy: プロジェクト階層単位
label_cross_project_system: すべてのプロジェクト
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/ko.yml
label_cross_project_tree: 최상위 및 모든 하위 프로젝트
label_cross_project_hierarchy: 상위 및 하위 프로젝트
label_cross_project_system: 모든 프로젝트
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/lt.yml
label_cross_project_tree: Su projekto medžiu
label_cross_project_hierarchy: Su projekto hierarchija
label_cross_project_system: Su visais projektais
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/lv.yml
label_cross_project_tree: Ar projekta koku
label_cross_project_hierarchy: Ar projektu hierarhiju
label_cross_project_system: Ar visiem projektiem
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/mk.yml
label_cross_project_tree: Со дрвото на проектот
label_cross_project_hierarchy: Со хиерархијата на проектот
label_cross_project_system: Со сите проекти
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/mn.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/nl.yml
label_cross_project_tree: Met project boom
label_cross_project_hierarchy: Met project hiërarchie
label_cross_project_system: Met alle projecten
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/no.yml
label_cross_project_tree: Med prosjekt-tre
label_cross_project_hierarchy: Med prosjekt-hierarki
label_cross_project_system: Med alle prosjekter
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/pl.yml
label_cross_project_tree: Z drzewem projektów
label_cross_project_hierarchy: Z hierarchią projektów
label_cross_project_system: Ze wszystkimi projektami
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/pt-BR.yml
label_cross_project_tree: Com a árvore do projeto
label_cross_project_hierarchy: Com a hierarquia do projeto
label_cross_project_system: Com todos os projetos
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/pt.yml
label_cross_project_tree: Com árvore do projecto
label_cross_project_hierarchy: Com hierarquia do projecto
label_cross_project_system: Com todos os projectos
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/ro.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/ru.yml
label_cross_project_tree: С деревом проектов
label_cross_project_hierarchy: С иерархией проектов
label_cross_project_system: Со всеми проектами
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/sk.yml
label_cross_project_tree: S projektovým stromom
label_cross_project_hierarchy: S hierarchiou projektu
label_cross_project_system: So všetkými projektami
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/sl.yml
label_cross_project_tree: Z drevesom projekta
label_cross_project_hierarchy: S projektno hierarhijo
label_cross_project_system: Z vsemi projekti
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/sq.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/sr-YU.yml
label_cross_project_tree: Sa stablom projekta
label_cross_project_hierarchy: Sa hijerarhijom projekta
label_cross_project_system: Sa svim projektima
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/sr.yml
label_cross_project_tree: Са стаблом пројекта
label_cross_project_hierarchy: Са хијерархијом пројекта
label_cross_project_system: Са свим пројектима
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/sv.yml
label_cross_project_tree: Med projektträd
label_cross_project_hierarchy: Med projekthierarki
label_cross_project_system: Med alla projekt
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/th.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/tr.yml
label_cross_project_tree: Proje ağacı ile
label_cross_project_hierarchy: Proje hiyerarşisi ile
label_cross_project_system: Tüm projeler ile
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/uk.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/vi.yml
label_cross_project_tree: With project tree
label_cross_project_hierarchy: With project hierarchy
label_cross_project_system: With all projects
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/zh-TW.yml
label_cross_project_tree: 與專案樹共用
label_cross_project_hierarchy: 與專案階層架構共用
label_cross_project_system: 與全部的專案共用
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
config/locales/zh.yml
label_cross_project_tree: 与项目树共享
label_cross_project_hierarchy: 与项目继承层次共享
label_cross_project_system: 与所有项目共享
error_unable_add_to_workflows: Unable to add issue status to all workflows. Please
add it manually.
label_add_to_all_workflows: Add to all workflows
(2-2/2)