Closed (won't fix)
Project:
Privatemsg
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 May 2007 at 11:34 UTC
Updated:
20 Jul 2007 at 10:56 UTC
$result = db_query_range("SELECT name FROM {users} u WHERE status <> 0 AND LOWER(name) LIKE LOWER('%s%%') AND data NOT LIKE '%\"privatemsg_allow\";s:0%'", $string, 0, 10);
while ($user = db_fetch_object($result)) {
$matches[$user->name] = check_plain($user->name);
}
This code (in my opinion) needs to be changed to display theme('username',$user)...
Comments
Comment #1
alippai commentedI don't know that autocomplete field supports posting uid but displaying name. :S
Comment #2
chx commentedHuh? theme username might contain HTML and whatnot , the autocomplete appears in a simple textfield. This is inappropriate. And core does nto do it either.