Skip to content
Snippets Groups Projects
Commit 84785214 authored by Alex Arnaud's avatar Alex Arnaud
Browse files

dev #12691 - Use "sort --unique" to remove duplicates matched values.

parent 13b3c1a2
Branches
Tags
5 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!215Dev#12992 Custom Fields,!209Hotline#13914 Album Link Config Menu,!190Dev#12691 Autocomplete,!165Dev#12691 Autocomplete
......@@ -145,8 +145,8 @@ class Class_Autocomplete_Index {
class Class_Autocomplete_IndexSearcher {
public function search($file_path, $terms) {
exec("grep -ri -E -m10 --no-filename '(^|\s)" . $terms . "' " . $file_path , $out);
return array_unique($out);
exec("grep -ri -E -m10 --no-filename '(^|\s)" . $terms . "' " . $file_path . " | sort --unique", $out);
return $out;
}
}
......
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