mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #37113
[Bug 1612481] Re: In some cases users are out of the search result on admin page
The problem is the Mahara code expects firstname and lastname to be 1
word each
See searchlib.php
line 137:
if (count($phraselist) == 2) {
and
line 198:
foreach ($fullnames as $n) {
$constraints[] = array(
'field' => 'firstname',
'type' => 'contains',
'string' => $n[0]
);
$constraints[] = array(
'field' => 'lastname',
'type' => 'contains',
'string' => $n[1]
);
}
So if you were to search for something like 'Schnitzel von Krumm' it
would not work
To fix this we could check all combinations of the words as fullnames when there are more than 2 words eg
| Schnitzel von | Krumm |
| Schnitzel | von Krumm |
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1612481
Title:
In some cases users are out of the search result on admin page
Status in Mahara:
New
Bug description:
Steps to replicate:
Make sure that the setting "Exact user searches" set to Yes on
admin/extensions/pluginconfig.php?plugintype=search&pluginname=internal
Create a user with multi word lastname, e.g Bla Bla Bla
Navigate to /admin/users/search.php
Type Bla in search form
Actual result: User is not in the search results
Expected result: User is in the search results
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1612481/+subscriptions
References