Changeset

6467:77d00a895bbd

util/dataforms: Make sure we iterate over field tags
author daurnimator <quae@daurnimator.com>
date Tue, 07 Oct 2014 12:08:23 -0400
parents 6466:6e67c73f730c
children 6468:3728c30da4e3 6471:95d93c4f9d40
files util/dataforms.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/dataforms.lua	Wed Oct 08 15:56:11 2014 -0400
+++ b/util/dataforms.lua	Tue Oct 07 12:08:23 2014 -0400
@@ -121,7 +121,7 @@
 
 	for _, field in ipairs(layout) do
 		local tag;
-		for field_tag in stanza:childtags() do
+		for field_tag in stanza:childtags("field") do
 			if field.name == field_tag.attr.var then
 				tag = field_tag;
 				break;