moved select outside the presets module

This commit is contained in:
Alfredo Cardigliano 2018-10-22 10:26:12 +02:00
parent 2b6673e1b4
commit 7c51217844
4 changed files with 16 additions and 7 deletions

View file

@ -29,6 +29,10 @@ local policy_filter = _GET["policy_filter"]
local proto_filter = _GET["l7proto"]
local category = _GET["category"]
interface.select(ifname)
presets_utils.init()
-- ################################################
-- Sorting and Pagination
@ -63,8 +67,6 @@ end
-- ################################################
interface.select(ifname)
local to_skip = (currentPage-1) * perPage
if sortOrder == "desc" then sOrder = rev_insensitive else sOrder = asc_insensitive end