1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Fix default view update when no lang is defined for the user

This commit is contained in:
Daniel Molina 2014-04-14 18:29:58 +02:00
parent a7a470f9f3
commit 4245bc1f2c

View File

@ -360,10 +360,10 @@ post '/config' do
error 500, ""
end
session[:lang] = user['TEMPLATE/LANG']
session[:vnc_wss] = user['TEMPLATE/VNC_WSS']
session[:default_view] = user['TEMPLATE/DEFAULT_VIEW']
session[:table_order] = user['TEMPLATE/TABLE_ORDER']
session[:lang] = user['TEMPLATE/LANG'] if user['TEMPLATE/LANG']
session[:vnc_wss] = user['TEMPLATE/VNC_WSS'] if user['TEMPLATE/VNC_WSS']
session[:default_view] = user['TEMPLATE/DEFAULT_VIEW'] if user['TEMPLATE/DEFAULT_VIEW']
session[:table_order] = user['TEMPLATE/TABLE_ORDER'] if user['TEMPLATE/TABLE_ORDER']
session[:display_name] = user[DISPLAY_NAME_XPATH] || user['NAME']
[200, ""]