diff options
Diffstat (limited to 'app/acf_www-controller.lua')
-rw-r--r-- | app/acf_www-controller.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua index a7cb42d..0ba143b 100644 --- a/app/acf_www-controller.lua +++ b/app/acf_www-controller.lua @@ -371,6 +371,7 @@ end mymodule.dispatch = function (self, userprefix, userctlr, useraction) local controller = nil local viewtable + local starttime = os.time() local success, err = xpcall ( function () if userprefix == nil then @@ -500,6 +501,8 @@ mymodule.dispatch = function (self, userprefix, userctlr, useraction) end end + --self.logevent(self.conf.prefix..self.conf.controller.."/"..self.conf.action.." took"..os.difftime(os.time(), starttime)) + return viewtable end @@ -603,6 +606,10 @@ mymodule.handle_clientdata = function(form, clientdata) end clientdata[name] = actualval end + if tonumber(name) and not clientdata[name] then + -- If the name is a number, haserl will convert the string to a number index + clientdata[name] = clientdata[tonumber(name)] + end if value.type == "group" then mymodule.handle_clientdata(value, clientdata[name]) elseif value.type == "boolean" then |