Changeset

9047:ab3488ee3ca5

util.dataforms: Ensure fields have names when collecting data (fixes traceback, thanks Martin)
author Kim Alvefur <zash@zash.se>
date Sun, 15 Jul 2018 22:50:05 +0200
parents 9046:7cdc718312c8
children 9048:c58be87e62d0
files util/dataforms.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/dataforms.lua	Sun Jul 15 22:35:42 2018 +0200
+++ b/util/dataforms.lua	Sun Jul 15 22:50:05 2018 +0200
@@ -155,7 +155,7 @@
 			if field.required then
 				errors[field.name] = "Required value missing";
 			end
-		else
+		elseif field.name then
 			present[field.name] = true;
 			local reader = field_readers[field.type];
 			if reader then