In the grant report, I see many blank "user" fields.
I suspect these are to do with a rule I've created which allocate a role to new users when they're created.
But the rule is triggered after the new user is saved, so a user name does exist - I don't understand why it's not being logged.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greg.1.anderson’s picture

Status: Active » Postponed (maintainer needs more info)

I haven't tried using Role Watchdog with roles, so I'm not sure what could be causing the problem you describe. As you say, I would expect that it should work. There's not enough information here to debug and fix. Patches are welcome.

simon_m’s picture

Hello, I just wanted to add that I see the same problem, with events showing up as a blank "user" for new users.

When we create a user, they get one role by default, and sometimes more roles are added during this new user process. Alas they are all recorded with a blank "user" name.

Am tempted to look at making a patch, but is beyond me at the moment. Would this be a very difficult patch for a newbie Drupal developer to take on?

rcodina’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Needs review
FileSize
1007 bytes

I attach a patch which fixes role watchdog for user registration entries (now the User column is no longer empty).

rcodina’s picture

Version: 7.x-2.0-beta2 » 7.x-2.x-dev
greg.1.anderson’s picture

@rcodina I am not using this module any longer. Would you like me to add you as a maintainer here?

rcodina’s picture

@greg.1.anderson Yes, thank you!

greg.1.anderson’s picture

Done

gchauhan’s picture

FileSize
2.31 KB

Adding this patch, it will resolve the issue.

rcodina’s picture

@gchauhan Have you tested patch on #3 first?

gchauhan’s picture

@rcodina, my bad, I didn't test your patch, but as of now I have tested it, its applied successfully and working fine. And the patch I have added here is also working fine. Both of the above listed patches are working fine. Now, let's leave it on maintainers that which one will be applied.

gchauhan’s picture

Status: Needs review » Reviewed & tested by the community
gchauhan’s picture

Status: Reviewed & tested by the community » Needs review

gaurav.kapoor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.