Skip to content

Commit

Permalink
fixed null comparison for created vs closed issues per #25
Browse files Browse the repository at this point in the history
  • Loading branch information
masweetman committed Jul 21, 2017
1 parent 5a5a926 commit 68e6c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/charts_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def render_chart(chart)
created_issues += 1
created_series[issue.created_on.to_date] = created_issues
end
scope.where('closed_on > ?', 0).order(:closed_on).each do |issue|
scope.where('closed_on IS NOT NULL').order(:closed_on).each do |issue|
closed_issues += 1
closed_series[issue.closed_on.to_date] = closed_issues
end
Expand Down

0 comments on commit 68e6c94

Please sign in to comment.