diff options
author | Steven Barth <steven@midlink.org> | 2008-11-01 18:32:02 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-11-01 18:32:02 +0000 |
commit | c7a06b61c778a9e24b67a1a89992c1dd77886a21 (patch) | |
tree | 1d07fd5e18d4818a1cd9b030d68a64a3c52d02dc /libs/cbi/luasrc/cbi.lua | |
parent | ae6fd93b8ce6b47d68a9ad96e0984edb91ee1716 (diff) |
Extend CBI state handling
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index ff5296e35..328722f9a 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -352,13 +352,15 @@ function Map.parse(self) if self:submitstate() then if self.save then - return self.changed and FORM_CHANGED or FORM_VALID + self.state = self.changed and FORM_CHANGED or FORM_VALID else - return FORM_INVALID + self.state = FORM_INVALID end else - return FORM_NODATA + self.state = FORM_NODATA end + + return self.state end function Map.render(self, ...) |