Hello,

I have issue on user account form which make me cannot save a user account page unless I change the unique field value, which is wrong because there is no duplicate value elsewhere.

Steps to reproduce

1. Create a field at admin/config/people/accounts/fields
2. Set the field as unique field at /admin/config/people/accounts
3. Edit a user account and set value to the field & Save.
4. Edit another user account and set value to the field (uniquely) & Save
5. Edit any user account & simply Save (doesn't change any field value, just save)
6. Error message appear "The field field_xxxx has to be unique" which is wrong because there is no other user account has the same value.

Drupal 10.2.7
PHP 8.2.19

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nexg created an issue. See original summary.

nexg’s picture

Issue summary: View changes

Update

nilesh.addweb made their first commit to this issue’s fork.

nilesh.addweb’s picture

Status: Active » Needs review

Please review MR !19

astonvictor’s picture

Version: 8.x-2.0 » 8.x-2.x-dev

thanks for the patch.

released as 2.1 version

astonvictor’s picture

astonvictor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.