Hi there.
I stumbled across this when trying to write a rule that runs when a user edits their page. By process of elimination I discovered it was in the invite_notifications module.
I'm not 100% sure what is being done here. Is it a check for a flag that is set when a user accepts an invite? And then unset the flag after the message has been displayed?
If so my patch isn't quite correct (you should check the flag at the top). My patch just treads lightly and checks the flag state before overwriting it with the same value.
The alternative would be:
if (isset($user->data['notification_received']) && $user->data['notification_received']) != FALSE ) {
...
}
Patch to follow.
Comments
Comment #1
queenvictoria commentedComment #2
queenvictoria commentedComment #3
davery commentedI think the fix is to change line 20 of invite_notifications.module to:
See lines 142 & 173. Otherwise notifications_received has no purpose as it's presumably always set after installation.
Comment #4
davery commentedi think this is the change i'm supposed to make to get the maintainer to look...
Comment #5
renatog commentedReally works good
Comment #7
renatog commentedCommitted to the dev branch.
Best,