Closed (fixed)
Project:
Role Delegation
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2009 at 12:53 UTC
Updated:
14 Jan 2010 at 06:40 UTC
If I create some role named in Ukranian or Russian language ( UTF-8 codepage ), then Permissions page does not display such roles.
Tested on Windows apache 1.3, and on CentOS apache 2.
Comments
Comment #1
jaypanI have discovered the same problem. What happens is that on non-english sites, on the permissions page, these are the only two options:
assign role
assign all roles
The reason for this is in this code:
The preg_replace function is replacing all roles that use non-English characters (in the OP's case, Russian, in my case, Japanese). I'm not to sure what the reason behind the preg_replace is, but I have found that by removing that line of code, the module works fine in other languages.
Comment #2
David Lesieur commentedI think the preg_replace() was a leftover from Drupal 5, which had limitations on role names. Fixed!
To complete the upgrade, it will be necessary to run update.php in order to preserve the role delegation permissions.