]> source.dussan.org Git - redmine.git/commitdiff
Merged r17931 from trunk to 4.0-stable (#30977).
authorGo MAEDA <maeda@farend.jp>
Wed, 6 Mar 2019 23:23:39 +0000 (23:23 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 6 Mar 2019 23:23:39 +0000 (23:23 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17932 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/show.html.erb
test/functional/projects_controller_test.rb

index e894bcd394bbfff2866455e440f2f1ccd6fc3665..904f86ba010b84e3fb4306c499a56b0a3bbe4819 100644 (file)
@@ -29,7 +29,7 @@
     <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li>
   <% end %>
   <% render_custom_field_values(@project) do |custom_field, formatted| %>
-    <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
+    <li class="cf_<%= custom_field.id %>"><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
   <% end %>
   </ul>
   <% end %>
index e5b5eaaf425c3b36f310b4bba06fca5a92a84a87..03a33d58482700860e2d6158ff2cc8203b274001 100644 (file)
@@ -477,7 +477,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
       }
     assert_response :success
 
-    assert_select 'li', :text => /Development status/
+    assert_select 'li[class=?]', 'cf_3', :text => /Development status/
   end
 
   def test_show_should_not_display_hidden_custom_fields