Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can not view or update user profile attribute in user details #23434

@antikalk

Description

@antikalk

Before reporting an issue

Area

admin/ui

Describe the bug

Since upgrading to KC 22.0.3 I am not able to see the user profile attribute values on the user details page even though they are returned by the API:

image

image

When I try to update the value this is not updated in the request payload and the old value is send again:
image
image

Looks like this is a Frontend issue. The mapping between the form and the model seem to be broken.

Version

22.0.3

Expected behavior

Form for user profile attributes is filled with old values on opening the user details screen.
When updating user profile attributes and pressing the save button the updated values are send.

Actual behavior

Form for user profile attributes is NOT filled with old values on opening the user details screen. Its just empty.
When updating user profile attributes and pressing the save button the updated values are NOT send. Instead the old ones are send.

How to Reproduce?

  1. Enable user profile feature, add a custom user profile attribute: e.g. birthdate - validator not necessary. Do not set it to required as otherwise you are at the moment not able to create a user (there is a separate story for that one, see User cannot be created via Admin UI if custom user attribute is required #23327).
  2. Create a user
  3. On the details screen of the user update the birthdate and press save.
  4. Reload the page: The birthdate is empty.

Anything else?

It looks like this does not affect first and last name.

Metadata

Metadata

Assignees

Labels

area/admin/uikind/bugCategorizes a PR related to a bugpriority/blockerHighest Priority. Has a deadline and it blocks other tasksteam/ui

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions