Changeset

7912:2c204ba8e52e

util.adhoc: Pass command data to initial_data callback in order to allow loading per-user settings
author Kim Alvefur <zash@zash.se>
date Wed, 22 Feb 2017 22:56:28 +0100
parents 7911:e528d848a185
children 7913:64daa21450f9
files util/adhoc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/adhoc.lua	Tue Feb 21 17:34:01 2017 +0100
+++ b/util/adhoc.lua	Wed Feb 22 22:56:28 2017 +0100
@@ -22,7 +22,7 @@
 			return result_handler(fields, err, data);
 		else
 			return { status = "executing", actions = {"next", "complete", default = "complete"},
-				 form = { layout = form, values = initial_data() } }, "executing";
+				 form = { layout = form, values = initial_data(data) } }, "executing";
 		end
 	end
 end