liquid_feedback_frontend
changeset 1691:0313770d09ad
Fixed behaviour of optional multiselect field
author | bsw |
---|---|
date | Wed Sep 22 18:21:17 2021 +0200 (2021-09-22) |
parents | 64f47fd0fa5a |
children | c91d97d1f5ba |
files | app/main/registration/_action/register.lua |
line diff
1.1 --- a/app/main/registration/_action/register.lua Tue Sep 21 12:33:10 2021 +0200 1.2 +++ b/app/main/registration/_action/register.lua Wed Sep 22 18:21:17 2021 +0200 1.3 @@ -153,7 +153,7 @@ 1.4 end 1.5 end 1.6 end 1.7 - if not optional and #values < 1 then 1.8 + if not field.optional and #values < 1 then 1.9 slot.put_into("self_registration__invalid_" .. field.name, "to_short") 1.10 slot.select("error", function() 1.11 ui.container{ content = _("Please enter: #{field_name}", { field_name = field.label or field.title }) }