Commit 804bc020aac86f1d14410731ad4f87a1bc1853ea
Exists in
master
and in
1 other branch
Merge pull request #536 from 2called-chaos/fix_pull_464_sort_applist
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 |