projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba68949
)
Fix error handling for SimpleForms
author
Steven Barth
<steven@midlink.org>
Wed, 5 Nov 2008 21:12:26 +0000
(21:12 +0000)
committer
Steven Barth
<steven@midlink.org>
Wed, 5 Nov 2008 21:12:26 +0000
(21:12 +0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index c1e4a7650cd125146e362c2db625115c6ce2f098..db360cbbd0ac9b99845eb0013768349371e17a95 100644
(file)
--- 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