From b74716c0063d7a3b8ba7f38f3cad58c46158b8b1 Mon Sep 17 00:00:00 2001 From: Hiro Miyamoto Date: Wed, 14 Jun 2023 13:58:53 -0400 Subject: [PATCH] Customizable chart top values (dropdown choices) Signed-off-by: Hiro Miyamoto --- app/controllers/report_controller/reports/editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/report_controller/reports/editor.rb b/app/controllers/report_controller/reports/editor.rb index c9adb0ad3e8..a55e806cd85 100644 --- a/app/controllers/report_controller/reports/editor.rb +++ b/app/controllers/report_controller/reports/editor.rb @@ -635,7 +635,7 @@ def gfv_charts else @edit[:new][:graph_other] = true if @edit[:new][:graph_type].nil? # Reset other setting if choosing first chart @edit[:new][:graph_type] = params[:chosen_graph] # Save graph type - @edit[:new][:graph_count] ||= chart_top_values # Reset graph count, if not set + @edit[:new][:graph_count] ||= self.class.chart_top_values # Reset graph count, if not set @edit[:new][:chart_mode] ||= 'counts' @edit[:new][:chart_column] ||= '' end