Changeset

5551:e1e06f1465be

util.dataforms: Add support for generating type='fixed' fields
author Florian Zeitz <florob@babelmonkeys.de>
date Mon, 11 Feb 2013 23:46:45 +0100
parents 5329:9fffd5fad4b3
children 5553:7baf59444b31
files util/dataforms.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/dataforms.lua	Thu Feb 07 22:11:35 2013 +0100
+++ b/util/dataforms.lua	Mon Feb 11 23:46:45 2013 +0100
@@ -53,7 +53,7 @@
 			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();