Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.5
-
Fix Version/s: None
-
Component/s: Global search
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
Advanced search (Search option) does not work.
Patch is as follows;
in search/query.php
if (strlen(trim($adv->canappear)) > 0) { $query_string .= ' '.implode(' ', preg_split("/[\s,;]+/", $adv->canappear)); }
// add module restriction
// (Shirai141): coment out these lines
// $doctypestr = get_string('doctype', 'search');
// $titlestr = get_string('title', 'search');
// $authorstr = get_string('author', 'search');
// (Shirai141): add from here
$doctypestr = 'doctype';
$titlestr = 'title';
$authorstr = 'author';
// (Shirai135): add to here
if ($adv->module != 'all') {
$query_string .= " +{$doctypestr}:".$adv->module;
}
------------
get_string('titie', 'search') will return 'Title' in English environment and will return '????' in Japanese environment!!!
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-19342 | We can not search by search keyword which include multi-byte strings in Globa search. |
|
|
|
This is actually not a feature I examined a lot. Miss of time and fellows to animate that work !!
Now I have one
I integrate ASAP and make confirmation tests...
Cheers.