Here's a patch for autocomplete recipient field. Lists only the users who have private message enabled.

Please report bugs, etc.

Comments

beginner’s picture

Status: Needs review » Active

http://drupal.org/node/25851 was marked as duplicate.

patch attached seems to be wrong patch.

Gurpartap Singh’s picture

StatusFileSize
new1.82 KB

Sorry for that :(

beginner’s picture

Status: Active » Needs review
Gurpartap Singh’s picture

Status: Needs review » Needs work

Previous patch listed all those who have enabled private message, and after that got fixed, I just discovered that mysql query gets 10 names starting with entered string and check about privatemsg_allow permission on them. If none of them have enabled private message, autocomplete would return empty although next users after the 10th user, fetched, might have private message enabled. Putting this into a loop isn't good solution.

So basically, it's the job to check through serialized data. I will submit a patch with single query to check for maching usernames and permissions directly from sql.

pulpzebra’s picture

could you please report on the development status of the patch?

mindless’s picture

Assigned: Gurpartap Singh » mindless
Status: Needs work » Fixed

autocomplete now added in cvs

Anonymous’s picture

Status: Fixed » Closed (fixed)