From 154e32c79d7e06de13716dadf5d26dbc3fca49ea 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