Software /
code /
prosody
Changeset
2220:98a880fda813
Merge with 0.6
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 25 Nov 2009 19:58:58 +0000 |
parents | 2215:4678aa4567c8 (current diff) 2219:9e1c6b6a2ee4 (diff) |
children | 2221:7ddd24d8260c |
files | |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/dataforms.lua Wed Nov 25 19:46:22 2009 +0100 +++ b/util/dataforms.lua Wed Nov 25 19:58:58 2009 +0000 @@ -93,7 +93,13 @@ local data = {}; for field_tag in stanza:childtags() do - local field_type = field_tag.attr.type; + local field_type; + for n, field in ipairs(layout) do + if field.name == field_tag.attr.var then + field_type = field.type; + break; + end + end local reader = field_readers[field_type]; if reader then