diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-27 17:41:14 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-27 17:41:14 +0000 |
commit | 6003886675069a36b0be692ea657d442b08e266e (patch) | |
tree | 736392b472d5d0507bee47152cabbef2439c4e3f /modules/admin-full | |
parent | d9cbd92d993dc39a05f7c7888e21ac0cfa3c9b19 (diff) |
modules/admin-full: accept any input in vlan setup as long as it contains a number
Diffstat (limited to 'modules/admin-full')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 2 |
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 3101616321..c497207182 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) |