diff options
author | Kim Alvefur <zash@zash.se> | 2017-02-22 22:56:28 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-02-22 22:56:28 +0100 |
commit | 8dc1b0ae47d0c777a59a914cba8dc7c7785f2ab4 (patch) | |
tree | f2c53d86d6edf7fdaf76ce4bcf9d206e83e59ded /util | |
parent | 6ca01c40ab3a609671efd252ac6a96561b9eb12c (diff) | |
download | prosody-8dc1b0ae47d0c777a59a914cba8dc7c7785f2ab4.tar.gz prosody-8dc1b0ae47d0c777a59a914cba8dc7c7785f2ab4.zip |
util.adhoc: Pass command data to initial_data callback in order to allow loading per-user settings
Diffstat (limited to 'util')
-rw-r--r-- | util/adhoc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |