Software /
code /
prosody
Changeset
953:bed748f5dbb1
util.dataforms: Fix some field types which didn't render properly
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 04 Apr 2009 16:25:16 +0100 |
parents | 952:ef648f49e734 |
children | 954:72e4639c9310 |
files | util/dataforms.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/dataforms.lua Sat Apr 04 16:23:32 2009 +0100 +++ b/util/dataforms.lua Sat Apr 04 16:25:16 2009 +0100 @@ -36,10 +36,10 @@ -- Assume an XML snippet form:add_child(value); elseif value then - form:text(tostring(value)); + form:tag("value"):text(tostring(value)); end elseif field_type == "boolean" then - form:tag("value"):text((value and "1") or "0"); + form:tag("value"):text((value and "1") or "0"):up(); elseif field_type == "fixed" then elseif field_type == "jid-multi" then