# HG changeset patch # User bsw # Date 1632143364 -7200 # Node ID c4821ac9e71b72e51ac555a49689c3e10803776f # Parent 860e45ecd44ed2710ecbb28597e7bd08afab76ce Use title when label is not set diff -r 860e45ecd44e -r c4821ac9e71b app/main/registration/_action/register.lua --- a/app/main/registration/_action/register.lua Mon Sep 20 15:07:21 2021 +0200 +++ b/app/main/registration/_action/register.lua Mon Sep 20 15:09:24 2021 +0200 @@ -181,7 +181,7 @@ if not optional and (not value or (#value < 1 and (not manual_verification or field.name ~= "mobile_phone"))) then slot.put_into("self_registration__invalid_" .. field.name, "to_short") slot.select("error", function() - ui.container{ content = _("Please enter: #{field_name}", { field_name = field.label }) } + ui.container{ content = _("Please enter: #{field_name}", { field_name = field.label or field.title }) } end) errors = errors + 1 end