aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-04 16:25:16 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-04 16:25:16 +0100
commit4af9474ef298c133cf87d67124a65d5f06edd881 (patch)
tree620abfc67fcb38db43648181d10cfad7970f3d0a /util
parent425c141369ef27ae7a9b4afd657da0b7f563f163 (diff)
downloadprosody-4af9474ef298c133cf87d67124a65d5f06edd881.tar.gz
prosody-4af9474ef298c133cf87d67124a65d5f06edd881.zip
util.dataforms: Fix some field types which didn't render properly
Diffstat (limited to 'util')
-rw-r--r--util/dataforms.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 92d4f619..26ed8bda 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -36,10 +36,10 @@ function form_t.form(layout, data)
-- 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