@@ -139,7 +139,7 class IssuesController < ApplicationController | |||
|
139 | 139 | respond_to do |format| |
|
140 | 140 | format.html { |
|
141 | 141 | render_attachment_warning_if_needed(@issue) |
|
142 | flash[:notice] = l(:notice_issue_successful_create, :id => view_context.link_to("##{@issue.id}", issue_path(@issue))) | |
|
142 | flash[:notice] = l(:notice_issue_successful_create, :id => view_context.link_to("##{@issue.id}", issue_path(@issue), :title => @issue.subject)) | |
|
143 | 143 | redirect_to(params[:continue] ? { :action => 'new', :project_id => @issue.project, :issue => {:tracker_id => @issue.tracker, :parent_issue_id => @issue.parent_issue_id}.reject {|k,v| v.nil?} } : |
|
144 | 144 | { :action => 'show', :id => @issue }) |
|
145 | 145 | } |
@@ -1722,7 +1722,7 class IssuesControllerTest < ActionController::TestCase | |||
|
1722 | 1722 | issue = Issue.first(:order => 'id DESC') |
|
1723 | 1723 | assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook', :issue => {:tracker_id => 3} |
|
1724 | 1724 | assert_not_nil flash[:notice], "flash was not set" |
|
1725 |
assert |
|
|
1725 | assert_include %|<a href="/issues/#{issue.id}" title="This is first issue">##{issue.id}</a>|, flash[:notice], "issue link not found in the flash message" | |
|
1726 | 1726 | end |
|
1727 | 1727 | |
|
1728 | 1728 | def test_post_create_without_custom_fields_param |
General Comments 0
You need to be logged in to leave comments.
Login now