projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f95576c
)
* luci-0.8: backport fix for reparse bug in cbi which caused invalidation of sections
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 7 Sep 2008 16:59:42 +0000
(16:59 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 7 Sep 2008 16:59:42 +0000
(16:59 +0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index
c1eefca
..
a37e81e
100644
(file)
--- a/
libs/cbi/luasrc/cbi.lua
+++ b/
libs/cbi/luasrc/cbi.lua
@@
-249,8
+249,8
@@
function Map.chain(self, config)
end
-- Use optimized UCI writing
end
-- Use optimized UCI writing
-function Map.parse(self
, ...
)
- Node.parse(self
, ...
)
+function Map.parse(self)
+ Node.parse(self)
if self.save then
for i, config in ipairs(self.parsechain) do
if self.save then
for i, config in ipairs(self.parsechain) do
@@
-273,7
+273,7
@@
function Map.parse(self, ...)
end
-- Reparse sections
end
-- Reparse sections
- Node.parse(self,
...
)
+ Node.parse(self,
true
)
end
for i, config in ipairs(self.parsechain) do
end
for i, config in ipairs(self.parsechain) do
@@
-666,7
+666,7
@@
function NamedSection.__init__(self, map, section, stype, ...)
self.section = section
end
self.section = section
end
-function NamedSection.parse(self)
+function NamedSection.parse(self
, novld
)
local s = self.section
local active = self:cfgvalue(s)
local s = self.section
local active = self:cfgvalue(s)
@@
-689,7
+689,7
@@
function NamedSection.parse(self)
if luci.http.formvalue("cbi.submit") then
Node.parse(self, s)
if luci.http.formvalue("cbi.submit") then
Node.parse(self, s)
- if not self.override_scheme and self.map.scheme then
+ if not
novld and not
self.override_scheme and self.map.scheme then
_uvl_validate_section(self, s)
end
end
_uvl_validate_section(self, s)
end
end
@@
-743,7
+743,7
@@
function TypedSection.depends(self, option, value)
table.insert(self.deps, {option=option, value=value})
end
table.insert(self.deps, {option=option, value=value})
end
-function TypedSection.parse(self)
+function TypedSection.parse(self
, novld
)
if self.addremove then
-- Remove
local crval = REMOVE_PREFIX .. self.config
if self.addremove then
-- Remove
local crval = REMOVE_PREFIX .. self.config
@@
-764,7
+764,7
@@
function TypedSection.parse(self)
if luci.http.formvalue("cbi.submit") then
Node.parse(self, k)
if luci.http.formvalue("cbi.submit") then
Node.parse(self, k)
- if not self.override_scheme and self.map.scheme then
+ if not
novld and not
self.override_scheme and self.map.scheme then
_uvl_validate_section(self, k)
end
end
_uvl_validate_section(self, k)
end
end