diff options
author | Kim Alvefur <zash@zash.se> | 2018-08-03 21:05:48 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-08-03 21:05:48 +0200 |
commit | 90a519fc704e5edc8f1753993d4acd675630f72e (patch) | |
tree | bce0c469dab12315802438d68b082fbbf35f7e24 /util/dataforms.lua | |
parent | aa1b2624bd2e1cc4e491d13d38aab127143c5517 (diff) | |
download | prosody-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.lua | 2 |
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 |