mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed table sort order
This commit is contained in:
parent
091378fd7b
commit
c5343e29e4
3 changed files with 14 additions and 18 deletions
|
|
@ -1551,7 +1551,7 @@ end
|
|||
|
||||
function getDefaultTableSort(table_type)
|
||||
local table_key = getRedisPrefix("ntopng.prefs.table")
|
||||
local value
|
||||
local value = nil
|
||||
|
||||
if(table_type ~= nil) then
|
||||
value = ntop.getHashCache(table_key, "sort_"..table_type)
|
||||
|
|
@ -1562,7 +1562,7 @@ end
|
|||
|
||||
function getDefaultTableSortOrder(table_type)
|
||||
local table_key = getRedisPrefix("ntopng.prefs.table")
|
||||
local value
|
||||
local value = nil
|
||||
|
||||
if(table_type ~= nil) then
|
||||
value = ntop.getHashCache(table_key, "sort_order_"..table_type)
|
||||
|
|
@ -1580,6 +1580,7 @@ end
|
|||
|
||||
function tablePreferences(key, value)
|
||||
table_key = getRedisPrefix("ntopng.prefs.table")
|
||||
|
||||
if((value == nil) or (value == "")) then
|
||||
-- Get preferences
|
||||
return ntop.getHashCache(table_key, key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue