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 | fdea58765aa6775559080c68e8b49565c387feae (patch) | |
tree | f2c53d86d6edf7fdaf76ce4bcf9d206e83e59ded | |
parent | d76ff8e08e19c49cc6a3f76e3800d712356df9c0 (diff) | |
download | prosody-fdea58765aa6775559080c68e8b49565c387feae.tar.gz prosody-fdea58765aa6775559080c68e8b49565c387feae.zip |
util.adhoc: Pass command data to initial_data callback in order to allow loading per-user settings
-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 |