Starting with Password Policy 7.x-1.15 there was a change to the validation routine that only occurs if an administrator is changing someone's account. This function assumes that form_state will have the values of the roles that were submitted. This does not occur when the bundled Password Change Tab is enabled. When Password Change Tab is enabled there are no roles submitted and thus the account's roles are reset to an empty array.

Comments

powrsurg created an issue. See original summary.

aohrvetpv’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev

Thanks for the bug report. I think this should be filed against the 7.x-1.x branch. 7.x-2.x does not bundle the Password Change Tab module.

aohrvetpv’s picture

Status: Active » Needs review
StatusFileSize
new1 KB
Squee3P0’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch, it works perfectly for me.

  • AohRveTPV committed 8b0dc8a on 7.x-1.x
    Issue #2957343 by AohRveTPV: Admin changing passwords removes roles when...
aohrvetpv’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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