# HG changeset patch # User Kim Alvefur # Date 1533323148 -7200 # Node ID aa1b02411846f963b7ce8230857938d863ea63f8 # Parent 9e45e7adcebf000d2cc510dc5c9fdb770f652e5c util.dataforms: Only include options in 'form' type forms Options should not be needed in other types of forms. diff -r 9e45e7adcebf -r aa1b02411846 util/dataforms.lua --- a/util/dataforms.lua Fri Aug 03 20:59:15 2018 +0200 +++ b/util/dataforms.lua Fri Aug 03 21:05:48 2018 +0200 @@ -50,7 +50,7 @@ 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