Commit 34a7dd51 authored by catch's avatar catch

Issue #1817656 by dawehner, tstoeckler, tim.plunkett: Follow-up for random...

Issue #1817656 by dawehner, tstoeckler, tim.plunkett: Follow-up for random test failures Let user_autocomplete() also find the anonymous user.
parent db633579
......@@ -34,7 +34,7 @@ function user_autocomplete() {
$anonymous_name = config('user.settings')->get('anonymous');
// Allow autocompletion for the anonymous user.
if (stripos($anonymous_name, $string) !== FALSE) {
$matches[$anonymous_name] = check_plain($anonymous_name);
$matches[$anonymous_name] = $anonymous_name;
}
}
$result = db_select('users')->fields('users', array('name'))->condition('name', db_like($string) . '%', 'LIKE')->range(0, 10)->execute();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment