##// END OF EJS Templates
Fixed that parent column should not include issue subject (#13673)....
Jean-Philippe Lang -
r13174:984e5a36bbbc
parent child
Show More
@@ -97,6 +97,8 module QueriesHelper
97 link_to value, issue_path(issue)
97 link_to value, issue_path(issue)
98 when :subject
98 when :subject
99 link_to value, issue_path(issue)
99 link_to value, issue_path(issue)
100 when :parent
101 value ? (value.visible? ? link_to_issue(value, :subject => false) : "##{value.id}") : ''
100 when :description
102 when :description
101 issue.description? ? content_tag('div', textilizable(issue, :description), :class => "wiki") : ''
103 issue.description? ? content_tag('div', textilizable(issue, :description), :class => "wiki") : ''
102 when :done_ratio
104 when :done_ratio
@@ -854,6 +854,17 class IssuesControllerTest < ActionController::TestCase
854 assert_equal 'application/pdf', response.content_type
854 assert_equal 'application/pdf', response.content_type
855 end
855 end
856
856
857 def test_index_with_parent_column
858 Issue.delete_all
859 parent = Issue.generate!
860 child = Issue.generate!(:parent_issue_id => parent.id)
861
862 get :index, :c => %w(parent)
863
864 assert_select 'td.parent', :text => "#{parent.tracker} ##{parent.id}"
865 assert_select 'td.parent a[title=?]', parent.subject
866 end
867
857 def test_index_send_html_if_query_is_invalid
868 def test_index_send_html_if_query_is_invalid
858 get :index, :f => ['start_date'], :op => {:start_date => '='}
869 get :index, :f => ['start_date'], :op => {:start_date => '='}
859 assert_equal 'text/html', @response.content_type
870 assert_equal 'text/html', @response.content_type
General Comments 0
You need to be logged in to leave comments. Login now