diff options
author | Steven Barth <steven@midlink.org> | 2009-06-20 07:14:36 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-06-20 07:14:36 +0000 |
commit | 341f757255caa08ee2922a3f32a00849e306f23c (patch) | |
tree | 3162599dc44dd392a78072a56ce69fb104f98d20 /libs/cbi/luasrc | |
parent | e2f2d1a63406da4fb5ff870394035bf60760398a (diff) |
Merge fixes / improvements
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 5 |
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 |