mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.dataforms: Only include options in 'form' type forms
Options should not be needed in other types of forms.
This commit is contained in:
parent
aa1b2624bd
commit
90a519fc70
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue