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