Merge pull request #137 from floriank/fix/20214-burndown-chart-broken

[20214] Burndown chart broken
pull/6827/head
ulferts 10 years ago
commit 2ccbac0f21
  1. 4
      app/models/burndown.rb
  2. 2
      app/views/rb_burndown_charts/show.html.erb

@ -107,8 +107,8 @@ class Burndown
def determine_max
@max = {
:points => @available_series.values.select{|s| s.unit == :points}.flatten.compact.max || 0.0,
:hours => @available_series.values.select{|s| s.unit == :hours}.flatten.compact.max || 0.0
:points => @available_series.values.select{|s| s.unit == :points}.flatten.compact.reject(&:nan?).max || 0.0,
:hours => @available_series.values.select{|s| s.unit == :hours}.flatten.compact.reject(&:nan?).max || 0.0
}
end

@ -43,7 +43,7 @@ See doc/COPYRIGHT.rdoc for more details.
<div class="burndown_chart" id="burndown_<%= @burndown.sprint_id %>" style="width:600px;height:300px;"><div class="loading"><%=l('backlogs.generating_chart')%></div></div>
<fieldset class="form--fieldset">
<fieldset class="burndown_control form--fieldset">
<legend class="form--fieldset-legend"><%= l('backlogs.chart_options') %></legend>
<%= burndown_series_checkboxes(@burndown) %>
</fieldset>

Loading…
Cancel
Save