Diff

plugins/adhoc/adhoc.lib.lua @ 3346:c9294e190bb6

mod_adhoc: Add capability to pass data to forms
author Florian Zeitz <florob@babelmonkeys.de>
date Sat, 10 Jul 2010 01:17:07 +0200
parent 3230:a5c3a82d677e
child 3484:66910810a9f7
line wrap: on
line diff
--- 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