Fixed Confusing error message when saving user

Kirby

Well-known member
Affected version
2.0.10
Steps to reproduce
  1. Create a new textbox custom profile field
  2. Create a new user and make sure this user has the value test in the profilefield created in step 1
  3. Edit the profile field created in step one and add the regex ^\d+$
  4. Edit the user created in step 2, click set new password, enter a valid new pasword and hit Save

Expected Result
The user is saved without error OR a meaningful error telling that the value of the profilefield created in step 1 is invalid

Actual Result
Error message "Please enter a value that matches the required format."

This error message is confusing as it could make the admin think it is related to the password field which is not the case.
IMHO it would be a lot better to include the name of the profile field in the error to make it clear that this message is related to a profile field (which, in the example stated above) is not even directly visible at this point.
 
Last edited:
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in the next XF release (2.0.11).

Change log:
Ignore custom field errors during admin edit and include custom field title with errors
 
Back
Top Bottom