Distorts the user name when editing it with multitenant add-on

Hello, colleagues.

Situation: jmix 1.3.4; multitenant add-on:
in the method onTenantFieldValueChange class UserEdit
is passed to service multitenancyUiSupport.getUsernameByTenant value usernameField.getValue()
This does not work because the value usernameField.getValue() does not contain full information but only a string ending with the symbol TENANT_USERNAME_SEPARATOR.
Information: If the value usernameField.getValue() is replaced by the value userDc.getItem().getUsername(), everything works correctly.

Hi,

Could you please provide exact steps to reproduce the problem and demo project where it can be reproduced, if possible.

I’ve just tried the following:

  1. Created new Jmix 1.4.0 project.
  2. Modified the User entity and user screens as described in the docs
  3. Created a couple of tenants

When I change the tenant in the user editor, I see the actual value in the usernameField.getValue()

Screenshot 2022-10-31 at 11.05.04