Skip to content

Commit

Permalink
Fix button sets order in tree
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Aug 1, 2019
1 parent 4c8e101 commit e94bbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/tree_builder_generic_object_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def x_get_god_kids(object, count_only)
end

def x_get_actions_kids(object, count_only)
count_only_or_objects(count_only, object[:object].custom_button_sets + object[:object].custom_buttons, :name)
count_only_or_objects(count_only, object[:object].custom_button_sets.sort_by(&:name) + object[:object].custom_buttons)
end

def tree_init_options
Expand Down

0 comments on commit e94bbcf

Please sign in to comment.