# HG changeset patch # User Florian Zeitz # Date 1278717427 -7200 # Node ID c9294e190bb68ac85002c25618ff2c3f4cc2f593 # Parent 8520cd88b84c0775009ec1b6958e7fb691ec63bd mod_adhoc: Add capability to pass data to forms diff -r 8520cd88b84c -r c9294e190bb6 plugins/adhoc/adhoc.lib.lua --- a/plugins/adhoc/adhoc.lib.lua Fri Jul 09 13:28:41 2010 +0100 +++ b/plugins/adhoc/adhoc.lib.lua Sat Jul 10 01:17:07 2010 +0200 @@ -69,9 +69,9 @@ end cmdtag:add_child(actions); elseif name == "form" then - cmdtag:add_child(content:form()); + cmdtag:add_child((content.layout or content):form(content.data)); elseif name == "result" then - cmdtag:add_child(content.layout:form(content.data, "result")); + cmdtag:add_child((content.layout or content):form(content.data, "result")); elseif name == "other" then cmdtag:add_child(content); end