From 5cfad4338f4749aee0a8d81e3b3727ec6630485d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 10 Feb 2016 19:38:33 +0100 Subject: [PATCH] luci-app-firewall: rely on auto-serialization for combobox choices Signed-off-by: Jo-Philipp Wich --- .../luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm | 2 +- .../luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm index 4a5bcfd6fa..b3079f3a48 100644 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm +++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addforward.htm @@ -61,7 +61,7 @@ 0, "data-choices", luci.util.serialize_json({keys, vals})) + ifattr(#keys > 0, "data-choices", {keys, vals}) %>/> diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm index 817c046c8c..ce275111d8 100644 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm +++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addsnat.htm @@ -48,7 +48,7 @@ 0, "data-choices", luci.util.serialize_json({ keys, vals })) + ifattr(#keys > 0, "data-choices", { keys, vals }) %> /> -- 2.30.2