do not thrown an error in burndown_chart view when there a nil-dates

pull/6827/head
Philipp Tessenow 11 years ago
parent 0e9baa0d34
commit a87ffec949
  1. 2
      app/views/rb_burndown_charts/show.html.erb

@ -35,7 +35,7 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<h3>
<%= "#{@sprint.name}: #{I18n.l(@sprint.start_date)} - #{I18n.l(@sprint.effective_date)}" %>
<%= "#{@sprint.name}: #{@sprint.start_date.present? ? I18n.l(@sprint.start_date) : ''} - #{@sprint.effective_date.present? ? I18n.l(@sprint.effective_date) : ''}" %>
</h3>
<% if @burndown %>

Loading…
Cancel
Save