liquid_feedback_frontend

changeset 1688:c4821ac9e71b

Use title when label is not set
author bsw
date Mon Sep 20 15:09:24 2021 +0200 (2021-09-20)
parents 860e45ecd44e
children d47e780a6c49
files app/main/registration/_action/register.lua
line diff
     1.1 --- a/app/main/registration/_action/register.lua	Mon Sep 20 15:07:21 2021 +0200
     1.2 +++ b/app/main/registration/_action/register.lua	Mon Sep 20 15:09:24 2021 +0200
     1.3 @@ -181,7 +181,7 @@
     1.4        if not optional and (not value or (#value < 1 and (not manual_verification or field.name ~= "mobile_phone"))) then
     1.5          slot.put_into("self_registration__invalid_" .. field.name, "to_short")
     1.6          slot.select("error", function()
     1.7 -          ui.container{ content = _("Please enter: #{field_name}", { field_name = field.label }) }
     1.8 +          ui.container{ content = _("Please enter: #{field_name}", { field_name = field.label or field.title }) }
     1.9          end)
    1.10          errors = errors + 1
    1.11        end

Impressum / About Us