aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-22 22:56:28 +0100
committerKim Alvefur <zash@zash.se>2017-02-22 22:56:28 +0100
commitfdea58765aa6775559080c68e8b49565c387feae (patch)
treef2c53d86d6edf7fdaf76ce4bcf9d206e83e59ded
parentd76ff8e08e19c49cc6a3f76e3800d712356df9c0 (diff)
downloadprosody-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.lua2
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