Skip to content

Commit

Permalink
When data column is selected save it to @edit[:new][:chart_column]
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Dec 9, 2016
1 parent 278465b commit 21174ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/report_controller/reports/editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def build_edit_screen
if options.empty?
@edit[:new][:chart_column] = nil
else
options[0][1] unless options.detect { |_, v| v == @edit[:new][:chart_column] }
@edit[:new][:chart_column] = options[0][1] unless options.detect { |_, v| v == @edit[:new][:chart_column] }
end

when "6" # Timeline
Expand Down

0 comments on commit 21174ba

Please sign in to comment.