]> source.dussan.org Git - redmine.git/commitdiff
Adds issue id link in the issue creation flash message (#3033).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Jul 2011 19:23:50 +0000 (19:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Jul 2011 19:23:50 +0000 (19:23 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6210 e93f8b46-1217-0410-a6f0-8f06a7374b81

46 files changed:
app/controllers/issues_controller.rb
config/locales/bg.yml
config/locales/bs.yml
config/locales/ca.yml
config/locales/cs.yml
config/locales/da.yml
config/locales/de.yml
config/locales/el.yml
config/locales/en-GB.yml
config/locales/en.yml
config/locales/es.yml
config/locales/eu.yml
config/locales/fa.yml
config/locales/fi.yml
config/locales/fr.yml
config/locales/gl.yml
config/locales/he.yml
config/locales/hr.yml
config/locales/hu.yml
config/locales/id.yml
config/locales/it.yml
config/locales/ja.yml
config/locales/ko.yml
config/locales/lt.yml
config/locales/lv.yml
config/locales/mk.yml
config/locales/mn.yml
config/locales/nl.yml
config/locales/no.yml
config/locales/pl.yml
config/locales/pt-BR.yml
config/locales/pt.yml
config/locales/ro.yml
config/locales/ru.yml
config/locales/sk.yml
config/locales/sl.yml
config/locales/sr-YU.yml
config/locales/sr.yml
config/locales/sv.yml
config/locales/th.yml
config/locales/tr.yml
config/locales/uk.yml
config/locales/vi.yml
config/locales/zh-TW.yml
config/locales/zh.yml
test/functional/issues_controller_test.rb

index 00a999dce33e4c812ba563ea32820f4087df6de7..7e65103418142a4217727a6fdc2251ff01f62004 100644 (file)
@@ -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 })
         }
index c1d885e9aa3339eada95bb0632a74379fbcccffc..63fe0d49f049223433ade319ae47d0970591f3b4 100644 (file)
@@ -975,3 +975,4 @@ bg:
   enumeration_doc_categories: Категории документи
   enumeration_activities: Дейности (time tracking)
   enumeration_system_activity: Системна активност
+  notice_issue_successful_create: Issue %{id} created.
index 4dbd8817e5c4006aeb46c954e1f275e0349648b3..c1f839ada74d79e42d8860cc82444347702f2028 100644 (file)
@@ -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.
index b7ee8a0532c2954bd4e27901ffc66f83e2c1bb44..c31236ea4eb8e94f1d1e3559b030298b9245f303 100644 (file)
@@ -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.
index baa608f598e1b34904a138278ff9e5035c1263e4..f59fe781fb9988e92b5702341936dc542de78041 100644 (file)
@@ -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.
index bd939c683290a95b6e572b088349b672c6cec264..9d81173ce6f45e0b65245f292d9f9fe5f84e67f3 100644 (file)
@@ -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.
index a565ea023af4fae2eca294b69e3292c132478902..1ebd3eddb9ef75ab26ad06d3fc7342a018e1e90b 100644 (file)
@@ -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.
index a7cfe221691578289903fa32bbd0532d658449a2..c6bfba97f146142a3ef736b75d089de446d89e42 100644 (file)
@@ -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.
index 8af3e684d4094890fd4b5bdd82d4adb4c1411d30..9a7561dcb0a915214dd94e7752d8c4aeef6821f3 100644 (file)
@@ -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.
index 401d608c8194890dd64d4b0ed5753c5b84ca4022..fa47d0f4dc659cc4c83c155a4df0ac3b73758219 100644 (file)
@@ -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."
index e1d30316a01aac96abc59f25bd571b2b883fa0ae..b09abb88fcef6aedbdf9f2985a82f6a1a910b4a3 100644 (file)
@@ -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.
index 296553389cf8da94486043722e08f1262af60838..a84ed5415747458c68a0b6e856bb60a33cf8357b 100644 (file)
@@ -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.
index 6bba8ab71e04300627512150f3eb571706b2927e..b0947e20c181f80b66ac5d600c75dc7bba34e6d6 100644 (file)
@@ -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.
index 85c2afff613ddd7cf710ec2444ee00642a71b309..42ed57356935af272261539f24d29a1226101ef9 100644 (file)
@@ -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.
index 76e5e4696039f4d66047e29d207a1bb710875155..cb1d93b36221f2af55cd45d002827ee9f11b1b66 100644 (file)
@@ -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."
index 87dacd7e0cce17038b6e7858f8fb2cb2b21b6d53..d3c0afd6f42cd88a9f2fc8f186591acad02299e5 100644 (file)
@@ -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.
index cb396537d9816e1d10f86a3375097ce48d973442..64d59a761d4aa02fb5f4a7aee01640ef41a6470b 100644 (file)
@@ -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.
index 67be91a970a8fb956700ea656f23a876087a179d..7d53c3afbd3f3506bf14c6504f95cd94a4470621 100644 (file)
@@ -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.
index fd79d85c8e2cb1f0a0d77e87fcff888d564260c9..e2878d36f0f3f3ca565a09118f65e4952b42cd54 100644 (file)
   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.
index b867c2e131a906e0a677e59fc58bad3ea6704f4f..acec304bdbda361c19f775b18bf2c38ebdae7d88 100644 (file)
@@ -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.
index 48dfd17904e2e4eaffef750d5867bdcdf47db63d..187a58700fec2405d2608a3dc257edbab376b5b1 100644 (file)
@@ -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.
index d4cb3770590627e1bae9f9b5fedebae8872af7d4..c90b83620ef7dbf55cfaeec8fac8efdfb679359d 100644 (file)
@@ -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.
index e536900f40fe1925a477bbae5da692dbdc4cdd70..8c5f74eca842c01bdb42bbb91fbf5dbbc5e3e1a2 100644 (file)
@@ -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.
index 9052ae114a29e76d752f27e925c51032a1383783..955bfd7b87f30faa61cc02a48b8934b022ee1627 100644 (file)
@@ -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.
index c9920d67bb89ced5286977126113dda12cd9f206..63803cb3cdb09e01340c4aba51926b0b460d642f 100644 (file)
@@ -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.
index a1ff390eb92c453b9511cadcfbf6ba14259e3050..feec5780e929d7a0796294d86731c266a39f7dee 100644 (file)
@@ -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.
index 29c79eae26a07dc2ed7bd16d6cd27e8e7b8f0f77..4365425c243276030308dfa293c09d2b7cabf6fd 100644 (file)
@@ -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.
index ab33895f02a7b0ae64f8230a100779912356b588..d2551d7bd8fe905aa71ead5b166b1b5b0fe92628 100644 (file)
@@ -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.
index 2bbb77e69ca024abff4c87470c3f1726eda227a9..d0e62f98f06bb6049269c481dd99102dae6d0243 100644 (file)
   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.
index c36723c46e1eb8c1d7d4e40041f0be24f18fc74d..1e1f02ed23473d70606860640c2394ed21d3d3b6 100644 (file)
@@ -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.
index 8abc2fe5c3b7fc9b4f1c6939920ca30e7e6744c7..34be79ab8a8aa985a698b763684f8e22a5f29160 100644 (file)
@@ -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.
index dbae58c3cd23e323fb445df7ecd671cafe065c2e..63faedb2ee8fe062a8c5fd52a8ea80848f8b669f 100644 (file)
@@ -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.
index 492743f727b8bc4b96e09391c758af483d4222c6..44bb88841daf7c2da69fe2958f754947e36b4da3 100644 (file)
@@ -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.
index 39860055fe13803c1ae307040a79723c685c96a5..9cbbadd45c3fdff520180b1d1836e5788ee55c56 100644 (file)
@@ -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.
index 7968c470a5aeab3bbf7c1a438a262a395e4df115..53aad5427e833f15fced6409e0d0a1c8195a40d9 100644 (file)
@@ -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.
index c59e75969be5b595dc1da361468a950970bb81f4..3bcce2f7db13ec0e515ca1c944625bdf6a53e819 100644 (file)
@@ -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.
index e47562cb7eda464435c3666feffb68a45f9ff60c..0f8338c010bf6f479e1fc0e7f58966aa3673c9cb 100644 (file)
@@ -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.
index cb3d39777dc149f6dde994ebee88ae541fa9a771..0b5539855e9ff9b15638909cdbd6bb786d3b25c2 100644 (file)
@@ -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.
index 63c070295239c244dc6195dcf49deaf4572ccabc..ffe76456c74348ccc236dba5c74e7e38a658dc41 100644 (file)
@@ -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.
index 1cb3b6c81fe55016333dc1c56dd1bfd70a3d26ba..ee8f1d2f3352bc28e38b0203d4a5f6fcca228a83 100644 (file)
@@ -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.
index a2628aeb1d7b15a57ee170a73b8d64aa934b102b..cd599bc5538fafe5e233778d66b5d0ed18dd1b19 100644 (file)
@@ -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.
index b20806a6f4f20a36287cd821d64eb1bb91382fee..b31d33930c2c704217897b00bdfeacdf79c4f9ee 100644 (file)
@@ -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.
index 11707485f9c7d8121abe13b95b6f99ddf880c5e3..ded7f5e086f39f0c36b7fab436648e1f08d27526 100644 (file)
@@ -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.
index 06316e13dff5d82192abc6e702c1cdd81b33525b..d0f25ebb7174e41eedf275de917506bff342987b 100644 (file)
   enumeration_doc_categories: 文件分類
   enumeration_activities: 活動 (時間追蹤)
   enumeration_system_activity: 系統活動
+  notice_issue_successful_create: Issue %{id} created.
index 47b4cb14f03546570e137ae10f1416e634510c4a..066f5e41014c3cb144016b247db2aed063feebc5 100644 (file)
@@ -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.
index 31e6ae11e0da6cef404826b1881b8f80839e6d71..53afe2a253b3e25a7f3c1b783c6a7d2f8068f453 100644 (file)
@@ -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