mod_vjud: Correctly pass current state to form (Thanks Florob)
authorKim Alvefur <zash@zash.se>
Thu, 09 Aug 2012 19:49:50 +0200
changeset 787 cec49ee88c23
parent 786 e318a341d332
child 788 aeb0999f12fa
mod_vjud: Correctly pass current state to form (Thanks Florob)
mod_vjud/mod_vjud.lua
--- a/mod_vjud/mod_vjud.lua	Tue Aug 07 15:51:15 2012 +0100
+++ b/mod_vjud/mod_vjud.lua	Thu Aug 09 19:49:50 2012 +0200
@@ -144,7 +144,7 @@
 		return { status = "completed" }
 	else -- No state, send the form.
 		return { status = "executing", actions  = { "complete" },
-			form = { layout = opt_in_layout, data = { searchable = opted_in[username] } } }, true;
+			form = { layout = opt_in_layout, values = { searchable = opted_in[username] } } }, true;
 	end
 end