diff options
author | Steven Barth <steven@midlink.org> | 2008-10-31 09:35:11 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-10-31 09:35:11 +0000 |
commit | 8c4492db5fac28d1c143931316e4ccb7f877e6ec (patch) | |
tree | 39f27af314d0c04dcfa3699203d35163d673652e /libs/cbi/luasrc/cbi.lua | |
parent | 676966f78bbe4aa42f819b991586dca0bac8c554 (diff) |
Removed UCI Save/Apply cache from Essentials
Made CBI controllers configurable
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 94ac964837..316b74f35e 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -322,7 +322,7 @@ function Map.parse(self) for i, config in ipairs(self.parsechain) do self.uci:save(config) end - if luci.http.formvalue("cbi.apply") then + if self:submitstate() and (self.autoapply or luci.http.formvalue("cbi.apply")) then for i, config in ipairs(self.parsechain) do self.uci:commit(config) |