summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-11-05 21:12:26 +0000
committerSteven Barth <steven@midlink.org>2008-11-05 21:12:26 +0000
commit9f28871ffcd8a59bc372059fe7db30eddba376ed (patch)
treedb4290ce426da2f53f2066af5664c1fc8c7ba42d
parentba689499bb82e7bff9a118feaec6a7fd032157e0 (diff)
Fix error handling for SimpleForms
-rw-r--r--libs/cbi/luasrc/cbi.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index c1e4a7650..db360cbbd 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -568,6 +568,7 @@ function SimpleForm.parse(self, readinput, ...)
valid = valid
and (not v.tag_missing or not v.tag_missing[1])
and (not v.tag_invalid or not v.tag_invalid[1])
+ and (not v.error)
end
end