If a field is configured to contain multiple values the form validation will cast an exception. This is because the $values array also contains an entry of the "add more" button which is an object and not an array.

Also if you try to save a user again it will not let you as a unique value is found although that value lives on the user being saved.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ChristianEsbensen created an issue. See original summary.

ChristianEsbensen’s picture

I have created a patch for this that supports multivalue fields. Also updated the error message so it lists which values that are invalid. Lastly I've fixed resave of user.

ChristianEsbensen’s picture

Status: Active » Needs review

  • sidhees committed 01db8d1 on 2854807-multiple-values-resave-users-bug
    Issue #2854807 by ChristianEsbensen : fixed with patch
    
sidheswar’s picture

Status: Needs review » Fixed

Thanks @ChristianEsbensen. I have made the changes as per your post.

sidheswar’s picture

Status: Fixed » Closed (fixed)