Issues adding roles when using User Manager and Chrome 38


Description

When using Chrome 38 or later Chrome versions and the User Manager application to add roles to existing Sitecore users, the following erratic behavior may appear.

Solution

To resolve the issue, follow the steps below:

  1. Open the /Website/sitecore/shell/Applications/Security/SelectRoles/SelectRoles.xaml.xml file.
  2. Replace the following block of code in the update() function:
  3. if(typeof(option.innerText) != 'undefined')
    {
      optionValue = option.innerText;
    }
    else
    {
      optionValue = option.textContent;
    }

    with the following:

    if(typeof(option.textContent) == 'undefined')
    {
      optionValue = option.innerText;
    }
    else
    {
      optionValue = option.textContent;
    }
  4. Clear the browser cache.