]> source.dussan.org Git - redmine.git/commitdiff
Rails3: view: html_safe for timelog/report.html.erb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 1 Jan 2012 06:11:46 +0000 (06:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 1 Jan 2012 06:11:46 +0000 (06:11 +0000)
Contributed by Eric Cline.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8450 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/timelog/report.html.erb

index ddbb71852a601c9b3eb886a25a43f036adfa7c49..029691b16414d449adf54ae3a2d3501e7da7a4bd 100644 (file)
@@ -50,7 +50,7 @@
 <%= render :partial => 'report_criteria', :locals => {:criterias => @report.criteria, :hours => @report.hours, :level => 0} %>
   <tr class="total">
   <td><%= l(:label_total) %></td>
-  <%= '<td></td>' * (@report.criteria.size - 1) %>
+  <%= ('<td></td>' * (@report.criteria.size - 1)).html_safe %>
   <% total = 0 -%>
   <% @report.periods.each do |period| -%>
     <% sum = sum_hours(select_hours(@report.hours, @report.columns, period.to_s)); total += sum -%>