From: Steven Barth Date: Tue, 21 Oct 2008 20:22:42 +0000 (+0000) Subject: Added missing submitstate-function to tables pseudo map X-Git-Tag: 0.9.0~1074 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac3489049f8c7d755b05400ca298fdb93b07e80b;p=oweals%2Fluci.git Added missing submitstate-function to tables pseudo map --- diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index f54d5ac9a..94ac96483 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -690,6 +690,10 @@ function Table.__init__(self, form, data, ...) function datasource.get(self, section, option) return data[section] and data[section][option] end + + function datasource.submitstate(self) + return luci.http.formvalue("cbi.submit") + end function datasource.del(...) return true