aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/dataforms.lua2
1 files changed, 1 insertions, 1 deletions
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