From 2549abdcab790961e50e970e7d55206ab1f95d66 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 7 Oct 2014 12:08:23 -0400 Subject: util/dataforms: Make sure we iterate over field tags --- util/dataforms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/dataforms.lua b/util/dataforms.lua index 01a8eef3..ee37157a 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -121,7 +121,7 @@ function form_t.data(layout, stanza) 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; -- cgit v1.2.3