From 2344ef54376bd25ed6ef7f35470135ff73b56d87 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Mon, 11 Feb 2013 23:46:45 +0100 Subject: util.dataforms: Add support for generating type='fixed' fields --- util/dataforms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/dataforms.lua b/util/dataforms.lua index 55bad998..8634e337 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -53,7 +53,7 @@ function form_t.form(layout, data, formtype) elseif field_type == "boolean" then form:tag("value"):text((value and "1") or "0"):up(); elseif field_type == "fixed" then - + form:tag("value"):text(value):up(); elseif field_type == "jid-multi" then for _, jid in ipairs(value) do form:tag("value"):text(jid):up(); -- cgit v1.2.3