mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.dataforms: Allow overriding default options even if the form has such
This commit is contained in:
parent
414778ee5d
commit
6b55f14950
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ function form_t.form(layout, data, formtype)
|
|||
end
|
||||
|
||||
local options = field.options;
|
||||
if formtype == "form" and not options and value
|
||||
if formtype == "form" and value
|
||||
and (field_type == "list-single" or field_type == "list-multi") then
|
||||
-- Allow passing dynamically generated options as values
|
||||
options, value = value, nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue