summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/issues_controller.rb4
-rw-r--r--config/locales/bg.yml1
-rw-r--r--config/locales/bs.yml1
-rw-r--r--config/locales/ca.yml1
-rw-r--r--config/locales/cs.yml1
-rw-r--r--config/locales/da.yml1
-rw-r--r--config/locales/de.yml1
-rw-r--r--config/locales/el.yml1
-rw-r--r--config/locales/en-GB.yml1
-rw-r--r--config/locales/en.yml1
-rw-r--r--config/locales/es.yml1
-rw-r--r--config/locales/eu.yml1
-rw-r--r--config/locales/fa.yml1
-rw-r--r--config/locales/fi.yml1
-rw-r--r--config/locales/fr.yml1
-rw-r--r--config/locales/gl.yml1
-rw-r--r--config/locales/he.yml1
-rw-r--r--config/locales/hr.yml1
-rw-r--r--config/locales/hu.yml1
-rw-r--r--config/locales/id.yml1
-rw-r--r--config/locales/it.yml1
-rw-r--r--config/locales/ja.yml1
-rw-r--r--config/locales/ko.yml1
-rw-r--r--config/locales/lt.yml1
-rw-r--r--config/locales/lv.yml1
-rw-r--r--config/locales/mk.yml1
-rw-r--r--config/locales/mn.yml1
-rw-r--r--config/locales/nl.yml1
-rw-r--r--config/locales/no.yml1
-rw-r--r--config/locales/pl.yml1
-rw-r--r--config/locales/pt-BR.yml1
-rw-r--r--config/locales/pt.yml1
-rw-r--r--config/locales/ro.yml1
-rw-r--r--config/locales/ru.yml1
-rw-r--r--config/locales/sk.yml1
-rw-r--r--config/locales/sl.yml1
-rw-r--r--config/locales/sr-YU.yml1
-rw-r--r--config/locales/sr.yml1
-rw-r--r--config/locales/sv.yml1
-rw-r--r--config/locales/th.yml1
-rw-r--r--config/locales/tr.yml1
-rw-r--r--config/locales/uk.yml1
-rw-r--r--config/locales/vi.yml1
-rw-r--r--config/locales/zh-TW.yml1
-rw-r--r--config/locales/zh.yml1
-rw-r--r--test/functional/issues_controller_test.rb17
46 files changed, 56 insertions, 9 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 00a999dce..7e6510341 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -139,11 +139,11 @@ class IssuesController < ApplicationController
call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue })
if @issue.save
attachments = Attachment.attach_files(@issue, params[:attachments])
- render_attachment_warning_if_needed(@issue)
- flash[:notice] = l(:notice_successful_create)
call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
respond_to do |format|
format.html {
+ render_attachment_warning_if_needed(@issue)
+ flash[:notice] = l(:notice_issue_successful_create, :id => "<a href='#{issue_path(@issue)}'>##{@issue.id}</a>")
redirect_to(params[:continue] ? { :action => 'new', :project_id => @project, :issue => {:tracker_id => @issue.tracker, :parent_issue_id => @issue.parent_issue_id}.reject {|k,v| v.nil?} } :
{ :action => 'show', :id => @issue })
}
diff --git a/config/locales/bg.yml b/config/locales/bg.yml
index c1d885e9a..63fe0d49f 100644
--- a/config/locales/bg.yml
+++ b/config/locales/bg.yml
@@ -975,3 +975,4 @@ bg:
enumeration_doc_categories: Категории документи
enumeration_activities: Дейности (time tracking)
enumeration_system_activity: Системна активност
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/bs.yml b/config/locales/bs.yml
index 4dbd8817e..c1f839ada 100644
--- a/config/locales/bs.yml
+++ b/config/locales/bs.yml
@@ -990,3 +990,4 @@ bs:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/ca.yml b/config/locales/ca.yml
index b7ee8a053..c31236ea4 100644
--- a/config/locales/ca.yml
+++ b/config/locales/ca.yml
@@ -979,3 +979,4 @@ ca:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/cs.yml b/config/locales/cs.yml
index baa608f59..f59fe781f 100644
--- a/config/locales/cs.yml
+++ b/config/locales/cs.yml
@@ -980,3 +980,4 @@ cs:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/da.yml b/config/locales/da.yml
index bd939c683..9d81173ce 100644
--- a/config/locales/da.yml
+++ b/config/locales/da.yml
@@ -993,3 +993,4 @@ da:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/de.yml b/config/locales/de.yml
index a565ea023..1ebd3eddb 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -995,3 +995,4 @@ de:
text_scm_config: Die SCM-Kommandos können in der in config/configuration.yml konfiguriert werden. Redmine muss anschließend neu gestartet werden.
text_scm_command_not_available: Scm Kommando ist nicht verfügbar. Bitte prüfen Sie die Einstellungen im Administrationspanel.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/el.yml b/config/locales/el.yml
index a7cfe2216..c6bfba97f 100644
--- a/config/locales/el.yml
+++ b/config/locales/el.yml
@@ -976,3 +976,4 @@ el:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml
index 8af3e684d..9a7561dcb 100644
--- a/config/locales/en-GB.yml
+++ b/config/locales/en-GB.yml
@@ -979,3 +979,4 @@ en-GB:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 401d608c8..fa47d0f4d 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -171,6 +171,7 @@ en:
notice_unable_delete_time_entry: Unable to delete time log entry.
notice_issue_done_ratios_updated: Issue done ratios updated.
notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
+ notice_issue_successful_create: "Issue %{id} created."
error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
error_scm_not_found: "The entry or revision was not found in the repository."
diff --git a/config/locales/es.yml b/config/locales/es.yml
index e1d30316a..b09abb88f 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -1013,3 +1013,4 @@ es:
label_git_report_last_commit: Informar del último commit para ficheros y directorios
text_scm_config: Puede configurar las órdenes de cada scm en configuration/configuration.yml. Por favor, reinicie la aplicación después de editarlo
text_scm_command_not_available: La orden para el Scm no está disponible. Por favor, compruebe la configuración en el panel de administración.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/eu.yml b/config/locales/eu.yml
index 296553389..a84ed5415 100644
--- a/config/locales/eu.yml
+++ b/config/locales/eu.yml
@@ -980,3 +980,4 @@ eu:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/fa.yml b/config/locales/fa.yml
index 6bba8ab71..b0947e20c 100644
--- a/config/locales/fa.yml
+++ b/config/locales/fa.yml
@@ -979,3 +979,4 @@ fa:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/fi.yml b/config/locales/fi.yml
index 85c2afff6..42ed57356 100644
--- a/config/locales/fi.yml
+++ b/config/locales/fi.yml
@@ -997,3 +997,4 @@ fi:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index 76e5e4696..cb1d93b36 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -185,6 +185,7 @@ fr:
notice_issue_done_ratios_updated: L'avancement des demandes a été mis à jour.
notice_api_access_key_reseted: Votre clé d'accès API a été réinitialisée.
notice_gantt_chart_truncated: "Le diagramme a été tronqué car il excède le nombre maximal d'éléments pouvant être affichés (%{max})"
+ notice_issue_successful_create: "La demande %{id} a été créée."
error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramétrage : %{value}"
error_scm_not_found: "L'entrée et/ou la révision demandée n'existe pas dans le dépôt."
diff --git a/config/locales/gl.yml b/config/locales/gl.yml
index 87dacd7e0..d3c0afd6f 100644
--- a/config/locales/gl.yml
+++ b/config/locales/gl.yml
@@ -988,3 +988,4 @@ gl:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/he.yml b/config/locales/he.yml
index cb396537d..64d59a761 100644
--- a/config/locales/he.yml
+++ b/config/locales/he.yml
@@ -981,3 +981,4 @@ he:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/hr.yml b/config/locales/hr.yml
index 67be91a97..7d53c3afb 100644
--- a/config/locales/hr.yml
+++ b/config/locales/hr.yml
@@ -983,3 +983,4 @@ hr:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/hu.yml b/config/locales/hu.yml
index fd79d85c8..e2878d36f 100644
--- a/config/locales/hu.yml
+++ b/config/locales/hu.yml
@@ -995,3 +995,4 @@
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/id.yml b/config/locales/id.yml
index b867c2e13..acec304bd 100644
--- a/config/locales/id.yml
+++ b/config/locales/id.yml
@@ -984,3 +984,4 @@ id:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/it.yml b/config/locales/it.yml
index 48dfd1790..187a58700 100644
--- a/config/locales/it.yml
+++ b/config/locales/it.yml
@@ -977,3 +977,4 @@ it:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/ja.yml b/config/locales/ja.yml
index d4cb37705..c90b83620 100644
--- a/config/locales/ja.yml
+++ b/config/locales/ja.yml
@@ -1006,3 +1006,4 @@ ja:
permission_set_issues_private: チケットをプライベートに設定
label_issues_visibility_public: プライベートチケット以外
text_issues_destroy_descendants_confirmation: %{count}個の子チケットも削除されます。
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/ko.yml b/config/locales/ko.yml
index e536900f4..8c5f74eca 100644
--- a/config/locales/ko.yml
+++ b/config/locales/ko.yml
@@ -1028,3 +1028,4 @@ ko:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/lt.yml b/config/locales/lt.yml
index 9052ae114..955bfd7b8 100644
--- a/config/locales/lt.yml
+++ b/config/locales/lt.yml
@@ -1036,3 +1036,4 @@ lt:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/lv.yml b/config/locales/lv.yml
index c9920d67b..63803cb3c 100644
--- a/config/locales/lv.yml
+++ b/config/locales/lv.yml
@@ -971,3 +971,4 @@ lv:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/mk.yml b/config/locales/mk.yml
index a1ff390eb..feec5780e 100644
--- a/config/locales/mk.yml
+++ b/config/locales/mk.yml
@@ -976,3 +976,4 @@ mk:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/mn.yml b/config/locales/mn.yml
index 29c79eae2..4365425c2 100644
--- a/config/locales/mn.yml
+++ b/config/locales/mn.yml
@@ -977,3 +977,4 @@ mn:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/nl.yml b/config/locales/nl.yml
index ab33895f0..d2551d7bd 100644
--- a/config/locales/nl.yml
+++ b/config/locales/nl.yml
@@ -958,3 +958,4 @@ nl:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/no.yml b/config/locales/no.yml
index 2bbb77e69..d0e62f98f 100644
--- a/config/locales/no.yml
+++ b/config/locales/no.yml
@@ -963,3 +963,4 @@
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/pl.yml b/config/locales/pl.yml
index c36723c46..1e1f02ed2 100644
--- a/config/locales/pl.yml
+++ b/config/locales/pl.yml
@@ -993,3 +993,4 @@ pl:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml
index 8abc2fe5c..34be79ab8 100644
--- a/config/locales/pt-BR.yml
+++ b/config/locales/pt-BR.yml
@@ -997,3 +997,4 @@ pt-BR:
label_git_report_last_commit: Relatar última alteração para arquivos e diretórios
text_scm_config: Você pode configurar seus comandos de versionamento em config/configurations.yml. Por favor reinicie a aplicação após alterá-lo.
text_scm_command_not_available: Comando de versionamento não disponível. Por favor verifique as configurações no painel de administração.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/pt.yml b/config/locales/pt.yml
index dbae58c3c..63faedb2e 100644
--- a/config/locales/pt.yml
+++ b/config/locales/pt.yml
@@ -981,3 +981,4 @@ pt:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/ro.yml b/config/locales/ro.yml
index 492743f72..44bb88841 100644
--- a/config/locales/ro.yml
+++ b/config/locales/ro.yml
@@ -969,3 +969,4 @@ ro:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/ru.yml b/config/locales/ru.yml
index 39860055f..9cbbadd45 100644
--- a/config/locales/ru.yml
+++ b/config/locales/ru.yml
@@ -1089,3 +1089,4 @@ ru:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/sk.yml b/config/locales/sk.yml
index 7968c470a..53aad5427 100644
--- a/config/locales/sk.yml
+++ b/config/locales/sk.yml
@@ -971,3 +971,4 @@ sk:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/sl.yml b/config/locales/sl.yml
index c59e75969..3bcce2f7d 100644
--- a/config/locales/sl.yml
+++ b/config/locales/sl.yml
@@ -972,3 +972,4 @@ sl:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/sr-YU.yml b/config/locales/sr-YU.yml
index e47562cb7..0f8338c01 100644
--- a/config/locales/sr-YU.yml
+++ b/config/locales/sr-YU.yml
@@ -976,3 +976,4 @@ sr-YU:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/sr.yml b/config/locales/sr.yml
index cb3d39777..0b5539855 100644
--- a/config/locales/sr.yml
+++ b/config/locales/sr.yml
@@ -977,3 +977,4 @@ sr:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/sv.yml b/config/locales/sv.yml
index 63c070295..ffe76456c 100644
--- a/config/locales/sv.yml
+++ b/config/locales/sv.yml
@@ -1017,3 +1017,4 @@ sv:
enumeration_doc_categories: Dokumentkategorier
enumeration_activities: Aktiviteter (tidsuppföljning)
enumeration_system_activity: Systemaktivitet
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/th.yml b/config/locales/th.yml
index 1cb3b6c81..ee8f1d2f3 100644
--- a/config/locales/th.yml
+++ b/config/locales/th.yml
@@ -973,3 +973,4 @@ th:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/tr.yml b/config/locales/tr.yml
index a2628aeb1..cd599bc55 100644
--- a/config/locales/tr.yml
+++ b/config/locales/tr.yml
@@ -995,3 +995,4 @@ tr:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/uk.yml b/config/locales/uk.yml
index b20806a6f..b31d33930 100644
--- a/config/locales/uk.yml
+++ b/config/locales/uk.yml
@@ -972,3 +972,4 @@ uk:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/vi.yml b/config/locales/vi.yml
index 11707485f..ded7f5e08 100644
--- a/config/locales/vi.yml
+++ b/config/locales/vi.yml
@@ -1027,3 +1027,4 @@ vi:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml
index 06316e13d..d0f25ebb7 100644
--- a/config/locales/zh-TW.yml
+++ b/config/locales/zh-TW.yml
@@ -1057,3 +1057,4 @@
enumeration_doc_categories: 文件分類
enumeration_activities: 活動 (時間追蹤)
enumeration_system_activity: 系統活動
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 47b4cb14f..066f5e410 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -979,3 +979,4 @@ zh:
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.
+ notice_issue_successful_create: Issue %{id} created.
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 31e6ae11e..53afe2a25 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -558,13 +558,16 @@ class IssuesControllerTest < ActionController::TestCase
def test_post_create_and_continue
@request.session[:user_id] = 2
- post :create, :project_id => 1,
- :issue => {:tracker_id => 3,
- :subject => 'This is first issue',
- :priority_id => 5},
- :continue => ''
- assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook',
- :issue => {:tracker_id => 3}
+ assert_difference 'Issue.count' do
+ post :create, :project_id => 1,
+ :issue => {:tracker_id => 3, :subject => 'This is first issue', :priority_id => 5},
+ :continue => ''
+ end
+
+ issue = Issue.first(:order => 'id DESC')
+ assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook', :issue => {:tracker_id => 3}
+ assert_not_nil flash[:notice], "flash was not set"
+ assert flash[:notice].include?("<a href='/issues/#{issue.id}'>##{issue.id}</a>"), "issue link not found in flash: #{flash[:notice]}"
end
def test_post_create_without_custom_fields_param