aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/dataforms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 58b45fd3..1a6807d8 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -29,7 +29,7 @@ function form_t.form(layout, data)
-- Add field tag
form:tag("field", { type = field_type, var = field.name, label = field.label });
- local value = data[field.name];
+ local value = data[field.name] or field.value;
-- Add value, depending on type
if field_type == "hidden" then