From ad742ac2d1e297c65d85b74e4e75c8073ffeac49 Mon Sep 17 00:00:00 2001 From: zmagod Date: Mon, 5 Feb 2018 16:27:04 +0100 Subject: [PATCH] adds nil check in ste_table_element for table name [fixes SCI-2009] --- app/views/reports/elements/_step_table_element.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/reports/elements/_step_table_element.html.erb b/app/views/reports/elements/_step_table_element.html.erb index 0e76051e3..cbad89990 100644 --- a/app/views/reports/elements/_step_table_element.html.erb +++ b/app/views/reports/elements/_step_table_element.html.erb @@ -6,7 +6,7 @@
- <% unless table.name.empty? then %> + <% if table && table.name %>
<%=t 'projects.reports.elements.step_table.table_name', name: table.name %>