From 8dc1b0ae47d0c777a59a914cba8dc7c7785f2ab4 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 22 Feb 2017 22:56:28 +0100 Subject: util.adhoc: Pass command data to initial_data callback in order to allow loading per-user settings --- util/adhoc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/adhoc.lua b/util/adhoc.lua index 671e85cf..17c9eee5 100644 --- a/util/adhoc.lua +++ b/util/adhoc.lua @@ -22,7 +22,7 @@ local function new_initial_data_form(form, initial_data, result_handler) 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 -- cgit v1.2.3