Software /
code /
prosody
Diff
util/dataforms.lua @ 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 |
parent | 6148:7dcd6f124c93 |
child | 6468:3728c30da4e3 |
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;