Commit 804bc020aac86f1d14410731ad4f87a1bc1853ea

Authored by Cyril Mougel
2 parents f01b2cd8 792102d0
Exists in master and in 1 other branch production

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 4 html = link_to('copy settings from another app', '#',
5 5 :class => 'button copy_config')
6 6 html << select("duplicate", "app",
7   - App.all.reject{|a| a == @app }.
  7 + App.all.asc(:name).reject{|a| a == @app }.
8 8 collect{|p| [ p.name, p.id ] }, {:include_blank => "[choose app]"},
9 9 {:class => "choose_other_app", :style => "display: none;"})
10 10 return html
... ...