Partial Matching When Searching for Users to Enrol

Partial Matching When Searching for Users to Enrol

by Keisuke TAMAI -
Number of replies: 1

Hi, I'm a moodle administrator of an university in Japan.

Thanks for welcoming in this forum. 

I have a question about manual enrolment.

When searching for users to enrol, search engine of manual enrolment find exact string match or begins-with match, right? It doesn't find partial matches I guess.

Is there any possibility that it can find partial matches?

ex) When searching for users to enrol, if I search for "moodle" then I should be able to find "moodle" in the result. But in case I search for "odle" then also I should be able to find "moodle".

Some faculty staff members inquired me on the topic above. They want to make partial matches possible.

If you have any idea to make it possible, could you please tell me the way?

Best regards,

Average of ratings: -
In reply to Keisuke TAMAI

Re: Partial Matching When Searching for Users to Enrol

by Keisuke TAMAI -

I could solve this question by editing /enroll/manual/ajax.php like this...

$searchanywhere = get_user_preferences('userselector_searchanywhere', false);

$searchanywhere = true;

After editing and purging all caches, search engine of manual enrolment is able to find partial matches.

Thanks,