luci-app-statistics: iwinfo: fix interface list preselection
authorJo-Philipp Wich <jo@mein.io>
Thu, 14 Nov 2019 10:14:36 +0000 (11:14 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 14 Nov 2019 10:16:00 +0000 (11:16 +0100)
Fixes: #3306
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 52a68a43b8f70236bf8276b065458b51983298f1)

applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/iwinfo.lua

index 20d9509df84dae144b4405ede0f0d52bbc1e270d..e3601710ec601c9e4994bcc4c343a6bdd351b179 100644 (file)
@@ -12,7 +12,7 @@ s = m:section(NamedSection, "collectd_iwinfo", "luci_statistics")
 o = s:option(Flag, "enable", translate("Enable this plugin"))
 o.default = 0
 
-o = s:option(Value, "Interfaces", translate("Monitor interfaces"),
+o = s:option(DynamicList, "Interfaces", translate("Monitor interfaces"),
        translate("Leave unselected to automatically determine interfaces to monitor."))
 o.template = "cbi/network_ifacelist"
 o.widget   = "checkbox"