# HG changeset patch # User Kim Alvefur # Date 1487800588 -3600 # Node ID 2c204ba8e52ea5ecb087a53ccb20aa006c6d94e8 # Parent e528d848a1857add3c0ee1131529a43055296c66 util.adhoc: Pass command data to initial_data callback in order to allow loading per-user settings diff -r e528d848a185 -r 2c204ba8e52e util/adhoc.lua --- 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