Fixed that link to the assignee is escaped twice on the issue view (#11352).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9967 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b9d7a02b51
commit
165c2be523
|
@ -37,7 +37,7 @@
|
||||||
rows.left l(:field_priority), h(@issue.priority.name), :class => 'priority'
|
rows.left l(:field_priority), h(@issue.priority.name), :class => 'priority'
|
||||||
|
|
||||||
unless @issue.disabled_core_fields.include?('assigned_to_id')
|
unless @issue.disabled_core_fields.include?('assigned_to_id')
|
||||||
rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
|
rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
|
||||||
end
|
end
|
||||||
unless @issue.disabled_core_fields.include?('category_id')
|
unless @issue.disabled_core_fields.include?('category_id')
|
||||||
rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
|
rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
|
||||||
|
|
|
@ -1114,6 +1114,14 @@ class IssuesControllerTest < ActionController::TestCase
|
||||||
assert_no_tag 'a', :content => /Next/
|
assert_no_tag 'a', :content => /Next/
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_show_should_display_link_to_the_assignee
|
||||||
|
get :show, :id => 2
|
||||||
|
assert_response :success
|
||||||
|
assert_select '.assigned-to' do
|
||||||
|
assert_select 'a[href=/users/3]'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_show_should_display_visible_changesets_from_other_projects
|
def test_show_should_display_visible_changesets_from_other_projects
|
||||||
project = Project.find(2)
|
project = Project.find(2)
|
||||||
issue = project.issues.first
|
issue = project.issues.first
|
||||||
|
|
Loading…
Reference in New Issue