# HG changeset patch # User bsw # Date 1632327677 -7200 # Node ID 0313770d09adca8c7bc485fe755e460c437b8429 # Parent 64f47fd0fa5a8c12916ed44fd37e35a704c902d2 Fixed behaviour of optional multiselect field diff -r 64f47fd0fa5a -r 0313770d09ad app/main/registration/_action/register.lua --- a/app/main/registration/_action/register.lua Tue Sep 21 12:33:10 2021 +0200 +++ b/app/main/registration/_action/register.lua Wed Sep 22 18:21:17 2021 +0200 @@ -153,7 +153,7 @@ end end end - if not optional and #values < 1 then + if not field.optional and #values < 1 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 or field.title }) }