Merge pull request #980 from ZmagoD/zd_SCI_2009

adds nil check in step_table_element for table name [fixes SCI-2009]
This commit is contained in:
Zmago Devetak 2018-02-06 15:44:56 +01:00 committed by GitHub
commit 25a42658c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@
<div class="pull-left attachment-icon">
<span class="glyphicon glyphicon-th"></span>
</div>
<% unless table.name.empty? then %>
<% if table && table.name %>
<div class="pull-left table-name">
<em><%=t 'projects.reports.elements.step_table.table_name', name: table.name %></em>
</div>