Skip to content

Commit

Permalink
Allow search user in course with matches from query - refs BT#18201
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Apr 19, 2021
1 parent aedeeca commit a7decb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/inc/lib/course.lib.php
Expand Up @@ -1714,9 +1714,9 @@ public static function get_user_list_from_course_code(
if (!empty($searchByKeyword)) {
$searchByKeyword = Database::escape_string($searchByKeyword);
$sql .= " AND (
user.firstname LIKE '$searchByKeyword' OR
user.username LIKE '$searchByKeyword' OR
user.lastname LIKE '$searchByKeyword'
user.firstname LIKE '$searchByKeyword%' OR
user.username LIKE '$searchByKeyword%' OR
user.lastname LIKE '$searchByKeyword%'
) ";
}

Expand Down

0 comments on commit a7decb5

Please sign in to comment.