mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Updated default pricelist sort #2741
This commit is contained in:
parent
4935e5c121
commit
e7a492dde5
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ class Admin::PricelistsController < AdminController
|
|||
|
||||
def index
|
||||
@q = Pricelist.search(params[:q])
|
||||
@q.sorts = ['category asc', 'duration asc', 'operation_category asc', 'valid_from asc', 'valid_to asc'] if @q.sorts.empty?
|
||||
@q.sorts = ['category asc', 'duration asc', 'operation_category asc', 'valid_from desc', 'valid_to asc'] if @q.sorts.empty?
|
||||
@pricelists = @q.result.page(params[:page])
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue