diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2013-02-11 23:46:45 +0100 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2013-02-11 23:46:45 +0100 |
commit | 2344ef54376bd25ed6ef7f35470135ff73b56d87 (patch) | |
tree | fa0414cbefa192f9413df6d188663fff06699d85 | |
parent | 62d876cf007b26c6167c3b9693f247e62a5dabf3 (diff) | |
download | prosody-2344ef54376bd25ed6ef7f35470135ff73b56d87.tar.gz prosody-2344ef54376bd25ed6ef7f35470135ff73b56d87.zip |
util.dataforms: Add support for generating type='fixed' fields
-rw-r--r-- | util/dataforms.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |