summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-22 11:31:21 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-22 11:31:21 +0000
commit733028a932feef66d0d2e93ff909ceccc63a4eb3 (patch)
treec90c129155ac7138cd9877ad2fd8b09e03958ff9 /lua
parentb729270c2e5135cf1e0063d16df34350af95cdf6 (diff)
downloadacf-core-733028a932feef66d0d2e93ff909ceccc63a4eb3.tar.bz2
acf-core-733028a932feef66d0d2e93ff909ceccc63a4eb3.tar.xz
Change handle_form to pass self into get_function and set_function
Diffstat (limited to 'lua')
-rwxr-xr-xlua/mvc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/mvc.lua b/lua/mvc.lua
index e66c95a..be78fd4 100755
--- a/lua/mvc.lua
+++ b/lua/mvc.lua
@@ -446,12 +446,12 @@ handle_clientdata = function(form, clientdata)
end
handle_form = function(self, getFunction, setFunction, clientdata, option, label, descr)
- local form = getFunction(clientdata)
+ local form = getFunction(self, clientdata)
if clientdata.submit then
self.handle_clientdata(form, clientdata)
- form = setFunction(form, clientdata.submit)
+ form = setFunction(self, form, clientdata.submit)
if not form.errtxt and descr then
form.descr = descr
end