# HG changeset patch # User Matthew Wild # Date 1339518715 -3600 # Node ID 15c1b8aa123da075e4b05f14be3dc93c4a91fad5 # Parent 13d18cc6527da339159e4360e7d827ab959ba994# Parent 5211c11dd865633708e92afbdce9393eaab2cf7d Merge 0.9->trunk diff -r 13d18cc6527d -r 15c1b8aa123d util/dataforms.lua --- a/util/dataforms.lua Tue Jun 12 13:55:56 2012 +0100 +++ b/util/dataforms.lua Tue Jun 12 17:31:55 2012 +0100 @@ -185,7 +185,7 @@ 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["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)