aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-03 22:24:35 +0200
committerKim Alvefur <zash@zash.se>2018-08-03 22:24:35 +0200
commit6b55f14950f406bc1a6e61090b35037f991d35b0 (patch)
tree044ad2040b063b9f29b30d419ea0d74125bb7a4d /util
parent414778ee5d861e9e23dd54a690cc341ba98b658c (diff)
downloadprosody-6b55f14950f406bc1a6e61090b35037f991d35b0.tar.gz
prosody-6b55f14950f406bc1a6e61090b35037f991d35b0.zip
util.dataforms: Allow overriding default options even if the form has such
Diffstat (limited to 'util')
-rw-r--r--util/dataforms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 45f1a79a..72394fd8 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -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;