mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #2538: table_order parameter must be defined in the sunstone-server.conf
This commit is contained in:
parent
9a9b19b57e
commit
6718fb29d3
@ -131,6 +131,8 @@ configure do
|
||||
set :erb, :trim => '-'
|
||||
end
|
||||
|
||||
DEFAULT_TABLE_ORDER = "desc"
|
||||
|
||||
##############################################################################
|
||||
# Helpers
|
||||
##############################################################################
|
||||
@ -193,7 +195,7 @@ helpers do
|
||||
if user['TEMPLATE/TABLE_ORDER']
|
||||
session[:table_order] = user['TEMPLATE/TABLE_ORDER']
|
||||
else
|
||||
session[:table_order] = $conf[:table_order]
|
||||
session[:table_order] = $conf[:table_order] || DEFAULT_TABLE_ORDER
|
||||
end
|
||||
|
||||
if user['TEMPLATE/DEFAULT_VIEW']
|
||||
|
Loading…
x
Reference in New Issue
Block a user