modules/admin-fulk: Fixed changes handling of Static Routes configuration page
authorSteven Barth <steven@midlink.org>
Fri, 22 Aug 2008 22:38:14 +0000 (22:38 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 22 Aug 2008 22:38:14 +0000 (22:38 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua

index a6f47ced11ebd9a59ef5c6828680d14eb2f6e75b..d7b8519686de746113df06991923deaace259911 100644 (file)
@@ -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"))