Commit 9cad46e4 authored by Novitsh's avatar Novitsh

Issue #2725243: Duplicate trim for same result filter

parent 2630010c
......@@ -75,7 +75,8 @@ class SearchApiString extends QueryTypePluginBase {
foreach ($this->results as $key => $result) {
if ($result['count'] || $query_operator == 'OR') {
$count = $result['count'];
$result = new Result(trim($result['filter'], '"'), trim($result['filter'], '"'), $count);
$result_filter = trim($result['filter'], '"');
$result = new Result($result_filter, $result_filter, $count);
$facet_results[] = $result;
}
}
......
Markdown is supported
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