mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
* luci-0.8: merge r3712
This commit is contained in:
@@ -366,7 +366,7 @@ function UVL._validate_option( self, option, nodeps )
|
||||
end
|
||||
|
||||
local w = tonumber(v)
|
||||
|
||||
|
||||
if option:scheme('minimum') then
|
||||
if not w or w < option:scheme('minimum') then
|
||||
return false, option:error(ERR.OPT_RANGE(option))
|
||||
@@ -378,12 +378,6 @@ function UVL._validate_option( self, option, nodeps )
|
||||
return false, option:error(ERR.OPT_RANGE(option))
|
||||
end
|
||||
end
|
||||
|
||||
if option:scheme('max_nil') then
|
||||
if v and (not w or w > tonumber(option:scheme('max_nil'))) then
|
||||
return false, option:error(ERR.OPT_RANGE(option))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user