diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 00a999d..7e65103 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 => "##{@issue.id}")
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 c1d885e..63fe0d4 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 4dbd881..c1f839a 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 b7ee8a0..c31236e 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 baa608f..f59fe78 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 bd939c6..9d81173 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 a565ea0..1ebd3ed 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 a7cfe22..c6bfba9 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 8af3e68..9a7561d 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 401d608..fa47d0f 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 e1d3031..b09abb8 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 2965533..a84ed54 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 6bba8ab..b0947e2 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 85c2aff..42ed573 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 76e5e46..cb1d93b 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 87dacd7..d3c0afd 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 cb39653..64d59a7 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 67be91a..7d53c3a 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 fd79d85..e2878d3 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 b867c2e..acec304 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 48dfd17..187a587 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 d4cb377..c90b836 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 e536900..8c5f74e 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 9052ae1..955bfd7 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 c9920d6..63803cb 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 a1ff390..feec578 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 29c79ea..4365425 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 ab33895..d2551d7 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 2bbb77e..d0e62f9 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 c36723c..1e1f02e 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 8abc2fe..34be79a 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 dbae58c..63faedb 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 492743f..44bb888 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 3986005..9cbbadd 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 7968c47..53aad54 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 c59e759..3bcce2f 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 e47562c..0f8338c 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 cb3d397..0b55398 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 63c0702..ffe7645 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 1cb3b6c..ee8f1d2 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 a2628ae..cd599bc 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 b20806a..b31d339 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 1170748..ded7f5e 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 06316e1..d0f25eb 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 47b4cb1..066f5e4 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 31e6ae1..53afe2a 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?("##{issue.id}"), "issue link not found in flash: #{flash[:notice]}"
end
def test_post_create_without_custom_fields_param