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 | 8cc295b34a55bbd96e95d01a8f5dec73eab77284 (patch) | |
tree | fa0414cbefa192f9413df6d188663fff06699d85 /util/dataforms.lua | |
parent | bbb26de0d5b6cba99b42835e9720fe60272ca2d1 (diff) | |
download | prosody-8cc295b34a55bbd96e95d01a8f5dec73eab77284.tar.gz prosody-8cc295b34a55bbd96e95d01a8f5dec73eab77284.zip |
util.dataforms: Add support for generating type='fixed' fields
Diffstat (limited to 'util/dataforms.lua')
-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(); |