Hey Berdir and everyone,

I've been testing the D7 version and noticed that adding the "[user]" suffix to specify the user (rather than the role with the same name) doesn't seem to work. I'm getting a message that the user isn't valid.

Basically, if you have a user named "editor" as well as a role named "editor," you can't specify "editor [user]" to send a message to the user (and not the role).

This functionality exists in the D6 version, but doesn't seem to work yet in D7....

--Ben

CommentFileSizeAuthor
#1 fix_direct_user_addressing.patch1.79 KBBerdir
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Status: Active » Needs review
FileSize
1.79 KB

Pretty obvious when you think about it. name [user] is not a valid user name, so we need to remove [user] before checking if it is a valid username.

BenK’s picture

Status: Needs review » Reviewed & tested by the community

Thanks! I tested this with several different combinations and everything works great, just as expected. So I think this is ready to be committed! :-)

--Ben

BenK’s picture

Thanks! I tested this with several different combinations and everything works great, just as expected. So I think this is ready to be committed! :-)

--Ben

Berdir’s picture

Version: 7.x-1.x-dev »
Status: Reviewed & tested by the community » Patch (to be ported)

Commited to 7.x-1.x.

soulfroys’s picture

I have the newest 6.x-2.x-dev version and a editor role too... "editor, editor [user]" doesn't work. Did I miss something?

Berdir’s picture

Yes, you are. This simply has not been ported to 6.x-2.x, it has only been commited to 7.x-1.x. This will most certainly be ported in the next few days, probably tomorrow.

Berdir’s picture

Status: Patch (to be ported) » Fixed

Ported and commited.

Status: Fixed » Closed (fixed)

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