Software /
code /
prosody
Diff
util/dataforms.lua @ 9088:aa1b02411846
util.dataforms: Only include options in 'form' type forms
Options should not be needed in other types of forms.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Aug 2018 21:05:48 +0200 |
parent | 9087:9e45e7adcebf |
child | 9089:3a7a0b9f42f3 |
line wrap: on
line diff
--- a/util/dataforms.lua Fri Aug 03 20:59:15 2018 +0200 +++ b/util/dataforms.lua Fri Aug 03 21:05:48 2018 +0200 @@ -50,7 +50,7 @@ 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