mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util/dataforms: Make sure we iterate over field tags
This commit is contained in:
parent
6656c56b93
commit
810491af12
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue