util/dataforms: Make sure we iterate over field tags

This commit is contained in:
daurnimator 2014-10-07 12:08:23 -04:00
parent 6656c56b93
commit 810491af12

View file

@ -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;