Commit 4b276750277c9418d778b97990555f9ef40f7565

Authored by Nathan Broadbent
1 parent 7863b426
Exists in master and in 1 other branch production

Default order for 'problems' should be last_notice_at, desc

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/controllers/apps_controller.rb
... ... @@ -10,8 +10,8 @@ class AppsController < InheritedResources::Base
10 10  
11 11 @sort = params[:sort]
12 12 @order = params[:order]
13   - @sort = "app" unless %w{message last_notice_at last_deploy_at count}.member?(@sort)
14   - @order = "asc" unless (@order == "desc")
  13 + @sort = "last_notice_at" unless %w{message app last_deploy_at count}.member?(@sort)
  14 + @order = "desc" unless (@order == "asc")
15 15  
16 16 @problems = resource.problems
17 17 @problems = @problems.unresolved unless @all_errs
... ...