Changeset

9088:aa1b02411846

util.dataforms: Only include options in 'form' type forms Options should not be needed in other types of forms.
author Kim Alvefur <zash@zash.se>
date Fri, 03 Aug 2018 21:05:48 +0200
parents 9087:9e45e7adcebf
children 9089:3a7a0b9f42f3
files util/dataforms.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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