summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-06-20 07:14:36 +0000
committerSteven Barth <steven@midlink.org>2009-06-20 07:14:36 +0000
commit341f757255caa08ee2922a3f32a00849e306f23c (patch)
tree3162599dc44dd392a78072a56ce69fb104f98d20 /libs/cbi
parente2f2d1a63406da4fb5ff870394035bf60760398a (diff)
Merge fixes / improvements
Diffstat (limited to 'libs/cbi')
-rw-r--r--libs/cbi/luasrc/cbi.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index 0265301f7..e513053ba 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -1287,6 +1287,11 @@ function AbstractValue.parse(self, section, novld)
else
self.error = { [section] = "invalid" }
end
+ if self.section.error then
+ table.insert(self.section.error[section], "invalid")
+ else
+ self.section.error = {[section] = {"invalid"}}
+ end
self.map.save = false
end
if fvalue and not (fvalue == cvalue) then