summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-27 17:42:00 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-27 17:42:00 +0000
commit3cdccaa76ca5bc7d337f53923cbff31c5065acf1 (patch)
tree3ef88bf39d4a3015be66465f85bff6ae5116fab8
parente8b29453c84b92b3c8c724c67fa6407cb70d6ba3 (diff)
luci-0.9: merge r5952
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
index f71561dba8..a411b0487c 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
@@ -65,7 +65,7 @@ m.uci:foreach("network", "switch",
end
s.create = function(self, section)
- local n = tonumber(section)
+ local n = tonumber(section and section:match("(%d+)"))
if n ~= nil and n >= 0 then
local sn = "%s_%d" %{ x['.name'], n }
local rv = TypedSection.create(self, sn)