Commit 792102d0e6619f550c88ef0e98c25450e2520bff

Authored by Sven Pachnit
1 parent fe1b7f5f
Exists in master and in 1 other branch production

Sort list of apps to copy settings from.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/apps_helper.rb
@@ -4,7 +4,7 @@ module AppsHelper @@ -4,7 +4,7 @@ module AppsHelper
4 html = link_to('copy settings from another app', '#', 4 html = link_to('copy settings from another app', '#',
5 :class => 'button copy_config') 5 :class => 'button copy_config')
6 html << select("duplicate", "app", 6 html << select("duplicate", "app",
7 - App.all.reject{|a| a == @app }. 7 + App.all.asc(:name).reject{|a| a == @app }.
8 collect{|p| [ p.name, p.id ] }, {:include_blank => "[choose app]"}, 8 collect{|p| [ p.name, p.id ] }, {:include_blank => "[choose app]"},
9 {:class => "choose_other_app", :style => "display: none;"}) 9 {:class => "choose_other_app", :style => "display: none;"})
10 return html 10 return html