summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-07 21:22:39 +0000
committerSteven Barth <steven@midlink.org>2008-09-07 21:22:39 +0000
commitd8282d382bc675eb1c930eed0fe65c41050400b8 (patch)
tree8a66bd056d4e92b31366dbe70f96b0d29481919c /modules/admin-full
parenta8c64ef3b09e8d64ae1c0497b9b852a0d98fdf64 (diff)
libs/cbi: Catch errors while creating named sections
Diffstat (limited to 'modules/admin-full')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/network.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
index fce84fe3f..dab4bb873 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
@@ -33,6 +33,8 @@ end
function s.create(self, section)
if TypedSection.create(self, section) then
created = section
+ else
+ self.invalid_cts = true
end
end