Software /
code /
prosody
Changeset
9092:5110da3a71eb
util.dataforms: Allow overriding default options even if the form has such
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Aug 2018 22:24:35 +0200 |
parents | 9091:519dea077d20 |
children | 9093:04a284c5b88b |
files | util/dataforms.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/dataforms.lua Fri Aug 03 22:05:40 2018 +0200 +++ b/util/dataforms.lua Fri Aug 03 22:24:35 2018 +0200 @@ -58,7 +58,7 @@ 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;