From: Steven Barth Date: Fri, 22 Aug 2008 22:38:14 +0000 (+0000) Subject: modules/admin-fulk: Fixed changes handling of Static Routes configuration page X-Git-Tag: 0.8.0~315 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8b61a53941ce5f0e5139f7c4d776abefad9b466;p=oweals%2Fluci.git modules/admin-fulk: Fixed changes handling of Static Routes configuration page --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua b/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua index a6f47ced1..d7b851968 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua @@ -47,6 +47,12 @@ end s = m:section(TypedSection, "route", translate("a_n_routes_static")) s.addremove = true s.anonymous = true + +function s.render(...) + luci.model.uci.load_config("network") + TypedSection.render(...) +end + s.template = "cbi/tblsection" iface = s:option(ListValue, "interface", translate("interface"))