Comparison

util/dataforms.lua @ 6468:3728c30da4e3

Merge 0.9->0.10
author Waqas Hussain <waqas20@gmail.com>
date Wed, 08 Oct 2014 18:42:33 -0400
parent 6149:2ae6e9063e88
parent 6467:77d00a895bbd
child 6668:f6f39c2f1b1f
comparison
equal deleted inserted replaced
6464:737c81bd898e 6468:3728c30da4e3
119 local data = {}; 119 local data = {};
120 local errors = {}; 120 local errors = {};
121 121
122 for _, field in ipairs(layout) do 122 for _, field in ipairs(layout) do
123 local tag; 123 local tag;
124 for field_tag in stanza:childtags() do 124 for field_tag in stanza:childtags("field") do
125 if field.name == field_tag.attr.var then 125 if field.name == field_tag.attr.var then
126 tag = field_tag; 126 tag = field_tag;
127 break; 127 break;
128 end 128 end
129 end 129 end