From d407be54b19fed67637fcc6f90a6f6d1249eda33 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Aug 2018 22:24:35 +0200 Subject: util.dataforms: Allow overriding default options even if the form has such --- util/dataforms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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; -- cgit v1.2.3