aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
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