aboutsummaryrefslogtreecommitdiffstats
path: root/util/dataforms.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-03 21:05:48 +0200
committerKim Alvefur <zash@zash.se>2018-08-03 21:05:48 +0200
commit90a519fc704e5edc8f1753993d4acd675630f72e (patch)
treebce0c469dab12315802438d68b082fbbf35f7e24 /util/dataforms.lua
parentaa1b2624bd2e1cc4e491d13d38aab127143c5517 (diff)
downloadprosody-90a519fc704e5edc8f1753993d4acd675630f72e.tar.gz
prosody-90a519fc704e5edc8f1753993d4acd675630f72e.zip
util.dataforms: Only include options in 'form' type forms
Options should not be needed in other types of forms.
Diffstat (limited to 'util/dataforms.lua')
-rw-r--r--util/dataforms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 06b74886..30a1dde7 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -50,7 +50,7 @@ function form_t.form(layout, data, formtype)
value = field.value;
end
- if formtype ~= "result" and field.options then
+ if formtype == "form" and field.options then
local defaults = {};
for _, val in ipairs(field.options) do
if type(val) == "table" then