Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix rendering html attributes with html_safe

Dombi Attila63fd74011eeb
diff --git a/app/components/row_component.html.erb b/app/components/row_component.html.erb
index b4840a36db8..e9f5f39b4d6 100644
--- a/app/components/row_component.html.erb
+++ b/app/components/row_component.html.erb
@@ -28,8 +28,8 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<tr
- <%= "id=\"#{row_css_id}\"" if row_css_id %>
- <%= "class=\"#{row_css_class}\"" if row_css_class %>
+ <%= "id=\"#{row_css_id}\"".html_safe if row_css_id %>
+ <%= "class=\"#{row_css_class}\"".html_safe if row_css_class %>
>
<% columns.each do |column| %>
<td class="<%= column_css_class(column) %>">