libs/cbi: Catch errors while creating named sections
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_network / network.lua
index fce84fe..dab4bb8 100644 (file)
@@ -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