git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d9cbd92
)
modules/admin-full: accept any input in vlan setup as long as it contains a number
author
Jo-Philipp Wich
<redacted>
Sat, 27 Mar 2010 17:41:14 +0000
(17:41 +0000)
committer
Jo-Philipp Wich
<redacted>
Sat, 27 Mar 2010 17:41:14 +0000
(17:41 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
patch
|
blob
|
history
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 31016163210a288def9eccc2daa9acb311d722e7..c4972071829db354e296c531fe38a6fbb59acb29 100644
(file)
--- 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)
git clone https://git.99rst.org/PROJECT