Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The module makes a multidimensional array out of the $edit variable (by adding the user roles capable of using the form), and then when a new field is requested to be added, tries to store the array elements in hidden form fields to preserve their values. Multidimensional arrays are not to be htmlspecialchars()-ed (neither passed on as usual strings anyway), so the new field addition loses the role information. I don't have a good idea how to solve the problem, but it is quite nasty...
Comments
Comment #1
ullgren CreditAttribution: ullgren commentedWhat browser do you use ?
I can't reproduce this error, using Mozilla Firefox 0.9.3, Galeon 1.3.17 or Opera 7.
I also know that have I used this kind of "trick" to pass multidimensional array thru forms in other applications aswell.
Since this seems to be browser dependent I demote it to normal.
Comment #2
ullgren CreditAttribution: ullgren commentedAny news ??
Still getting this error ??
Comment #3
Gábor HojtsyI am not using the module anymore, so if you cannot reproduce it, then it might not be a problem... I was in admin mode, if that helps...
Comment #4
ullgren CreditAttribution: ullgren commentedOk ... closing since I can't reproduce the error.