diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-06-12 17:31:55 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-06-12 17:31:55 +0100 |
commit | ff8bd93299b7f9a46a5dc1ff9825ebde7637321e (patch) | |
tree | 5821c632e94a3d6d3d1b8e8c5dd0053f635b8813 | |
parent | 6dc6c83001b9de3fadb0c4af5742232b80f61ae7 (diff) | |
parent | e75bdcefeef9a591b20d68bf8da18913b9117e6e (diff) | |
download | prosody-ff8bd93299b7f9a46a5dc1ff9825ebde7637321e.tar.gz prosody-ff8bd93299b7f9a46a5dc1ff9825ebde7637321e.zip |
Merge 0.9->trunk
-rw-r--r-- | util/dataforms.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua index 8cb39144..55bad998 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -185,7 +185,7 @@ field_readers["list-multi"] = function (field_tag, required) local result = {}; for value in field_tag:childtags("value") do - result[#result+1] = value; + result[#result+1] = value:get_text(); end return result, (required and #result == 0 and "Required value missing" or nil); end @@ -202,10 +202,10 @@ field_readers["text-multi"] = field_readers["list-single"] = field_readers["text-single"]; - local boolean_values = { - ["1"] = true, ["true"] = true, - ["0"] = false, ["false"] = false, - }; +local boolean_values = { + ["1"] = true, ["true"] = true, + ["0"] = false, ["false"] = false, +}; field_readers["boolean"] = function (field_tag, required) |