# HG changeset patch # User Kim Alvefur # Date 1533327875 -7200 # Node ID 5110da3a71eb7d53364bd8c3a6f947c519996a5b # Parent 519dea077d20a2c07338810a5add4580b8821024 util.dataforms: Allow overriding default options even if the form has such diff -r 519dea077d20 -r 5110da3a71eb util/dataforms.lua --- 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;