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:
73607db
)
Allow SimpleForm handler to set CBI status
author
Steven Barth
<steven@midlink.org>
Mon, 9 Mar 2009 14:28:55 +0000
(14:28 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 9 Mar 2009 14:28:55 +0000
(14:28 +0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index b6ccc548065bfdf4731021027af78766022cfeb1..88203660c9b20675a0d7e9306fffdec54b5d10c4 100644
(file)
--- a/
libs/cbi/luasrc/cbi.lua
+++ b/
libs/cbi/luasrc/cbi.lua
@@
-577,7
+577,12
@@
function SimpleForm.parse(self, readinput, ...)
or valid and FORM_VALID
or FORM_INVALID
- self.dorender = not self.handle or self:handle(state, self.data) ~= false
+ self.dorender = not self.handle
+ if self.handle then
+ local nrender, nstate = self:handle(state, self.data)
+ self.dorender = self.dorender or (nrender ~= false)
+ state = nstate or state
+ end
return state
end