Skip to content

Commit

Permalink
Merge pull request #6368 from skateman/report-menu-fix
Browse files Browse the repository at this point in the history
Set empty report submenus to empty arrays instead of empty strings
  • Loading branch information
mzazrivec authored Nov 13, 2019
2 parents b7c118a + 449266c commit c521654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/report_controller/menus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def menu_field_changed
@edit[:temp_new] = []
if @edit[:tree_arr].blank?
# if all subfolders were deleted
@edit[:temp_new].push(@edit[:temp_arr][0], "")
@edit[:temp_new].push(@edit[:temp_arr][0], [])
else
@edit[:tree_arr].each do |el|
old_folder = @edit[:tree_hash].key(el)
Expand Down

0 comments on commit c521654

Please sign in to comment.