Closed (fixed)
Project:
Invite
Version:
6.x-2.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2010 at 09:39 UTC
Updated:
15 Aug 2010 at 07:30 UTC
In invite.module line 661, user_roles(0, 'send invitations') return the translated roles' name, but in $account->roles, the roles were not be translated, so on line 663: in_array($role, $account->roles) will always return false if the language is not english.
it can be fixed by some changes:
661 change to foreach (user_roles(0, 'send invitations') as $rid => $role) {
663 change to if (in_array($rid, array_keys($account->roles))) {
Comments
Comment #1
smk-ka commentedThanks, this has already been fixed in the development snapshot.