Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2103073-8.patch | 2.31 KB | gchauhan |
#3 | grant-report-missing-2103073.patch | 1007 bytes | rcodina |
Comments
Comment #1
greg.1.anderson CreditAttribution: greg.1.anderson commentedI 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.
Comment #2
simon_m CreditAttribution: simon_m commentedHello, 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?
Comment #3
rcodina CreditAttribution: rcodina commentedI attach a patch which fixes role watchdog for user registration entries (now the User column is no longer empty).
Comment #4
rcodina CreditAttribution: rcodina commentedComment #5
greg.1.anderson CreditAttribution: greg.1.anderson at Pantheon commented@rcodina I am not using this module any longer. Would you like me to add you as a maintainer here?
Comment #6
rcodina CreditAttribution: rcodina commented@greg.1.anderson Yes, thank you!
Comment #7
greg.1.anderson CreditAttribution: greg.1.anderson at Pantheon commentedDone
Comment #8
gchauhan CreditAttribution: gchauhan as a volunteer and at OpenSense Labs for DrupalFit commentedAdding this patch, it will resolve the issue.
Comment #9
rcodina CreditAttribution: rcodina commented@gchauhan Have you tested patch on #3 first?
Comment #10
gchauhan CreditAttribution: gchauhan as a volunteer and at OpenSense Labs for DrupalFit commented@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.
Comment #11
gchauhan CreditAttribution: gchauhan as a volunteer and at OpenSense Labs for DrupalFit commentedComment #12
gchauhan CreditAttribution: gchauhan as a volunteer and at OpenSense Labs for DrupalFit commentedComment #14
gaurav.kapoor CreditAttribution: gaurav.kapoor for DrupalFit commented