Skip to content

Commit

Permalink
Hide closed statuses by default in the chart (#31418).
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.redmine.org/redmine/trunk@18201 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
vividtone committed May 26, 2019
1 parent f38db92 commit 5f41a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/reports/_details.html.erb
Expand Up @@ -63,7 +63,7 @@
$(document).ready(function(){
var chartData1 = {
labels: <%= raw rows.collect{|row| row.name}.to_json %>,
datasets: <%= raw @statuses.collect{|status| {"label" => status.name, "data" => rows.collect{|row| aggregate(data, {field_name => row.id, "status_id" => status.id})}}}.to_json %>
datasets: <%= raw @statuses.collect{|status| {"label" => status.name, "hidden" => status.is_closed?, "data" => rows.collect{|row| aggregate(data, {field_name => row.id, "status_id" => status.id})}}}.to_json %>
};
var chartData2 = {
labels: <%= raw @statuses.collect{|status| status.name}.to_json %>,
Expand Down

0 comments on commit 5f41a43

Please sign in to comment.