Closed (fixed)
Project:
Realname registration
Version:
6.x-2.0-rc5
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
23 Oct 2011 at 18:50 UTC
Updated:
25 Oct 2011 at 15:59 UTC
Hi!
Great module! I intend to use it to increase usability in the Commons distribution and to solve real names issue together with realname module (#912462: Add Real Names support to Drupal Commons).
But, there is one flaw: module is checking if content_permission module is enabled without checking if content_profile is enabled too.
As I'm not using git yet, I will explain fix here:
Line 218 @ realname_registration.admin.inc file:
if (module_exists('content_permissions')) {
should be changed to:
if (module_exists('content_permissions') && module_exists('content_profile')) {
Thx.
Comments
Comment #1
sgerbino commentedThank you for reporting the issue. In addition, it needed to check if the user is actually using content_profile fields (inside the function).
In case you or anyone has hacked the module to get this desired functionality;
On Line 377, Instead of:
It needed to be:
And so on for each of the fields.
I pushed the fix upstream so it will show up on the development branch soon, I will try to quickly release another RC after I add hook_perm and test it out a bit.
Comment #2
izkreny commentedThx for the quick response and fix, the dev branch will be just fine for now. :)
Comment #3
sgerbino commented