Software /
code /
prosody
Diff
util/dataforms.lua @ 7447:843fe134453e
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 30 May 2016 13:17:28 +0200 |
parent | 7446:0db72fac2faa |
child | 8255:d70d4c1ac17a |
line wrap: on
line diff
--- a/util/dataforms.lua Sat May 28 12:51:12 2016 +0200 +++ b/util/dataforms.lua Mon May 30 13:17:28 2016 +0200 @@ -72,7 +72,7 @@ for _, val in ipairs(field.options or value) do if type(val) == "table" then form:tag("option", { label = val.label }):tag("value"):text(val.value):up():up(); - if value == val.value or field.options and val.default and (not has_default) then + if value == val.value or val.default and (not has_default) then form:tag("value"):text(val.value):up(); has_default = true; end