From 78c373818497d0b6c3e6e4ae60eecb68538c85c5 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Wed, 1 Sep 2010 22:44:30 +0200 Subject: mod_adhoc: Fix passing data to util.dataforms --- plugins/adhoc/adhoc.lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/adhoc/adhoc.lib.lua b/plugins/adhoc/adhoc.lib.lua index 361f4731..d4ffd80c 100644 --- a/plugins/adhoc/adhoc.lib.lua +++ b/plugins/adhoc/adhoc.lib.lua @@ -69,9 +69,9 @@ function _M.handle_cmd(command, origin, stanza) end cmdtag:add_child(actions); elseif name == "form" then - cmdtag:add_child((content.layout or content):form(content.data)); + cmdtag:add_child((content.layout or content):form(content.values)); elseif name == "result" then - cmdtag:add_child((content.layout or content):form(content.data, "result")); + cmdtag:add_child((content.layout or content):form(content.values, "result")); elseif name == "other" then cmdtag:add_child(content); end -- cgit v1.2.3