I have installed the role_export.module to make my user roles exportable (gives machine_name field and hashes it to create the role id). And I noticed that everytime I run cache clear or cron the role id of the Forum Moderator role will get overwritten by role_export module. This causes forum_access to create another role "Forum Moderator 2" and next time cron runs, it will create "Forum Moderator 3" and so on.
Basically what was happening was, role_export module runs role_export_normalize() function which basically modifies the role id's of roles that don't match with their md5($role_machine_name). Below is a patch that will fix the issue if anyone needs.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | forum_access_role_export_integration.patch | 1.03 KB | baysaa |
| forum_access_role_export_integration.patch | 1.05 KB | baysaa |
Comments
Comment #2
baysaa commentedSorry, new patch without windows carriage returns
Comment #3
baysaa commentedComment #5
salvisThis is a Role Export issue, and FA works correctly, even if Role Export deletes FA's Forum Moderator role.
Comment #6
salvis(Not sure if Role Export renumbers rids or not, but if it does, then http://www.drupal4hu.com/node/334 may have some related information.)