From 90a519fc704e5edc8f1753993d4acd675630f72e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Aug 2018 21:05:48 +0200 Subject: util.dataforms: Only include options in 'form' type forms Options should not be needed in other types of forms. --- 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 06b74886..30a1dde7 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -50,7 +50,7 @@ function form_t.form(layout, data, formtype) value = field.value; end - if formtype ~= "result" and field.options then + if formtype == "form" and field.options then local defaults = {}; for _, val in ipairs(field.options) do if type(val) == "table" then -- cgit v1.2.3