Merge pull request #189 from creative-commoners/pulls/3.0/namespaced-classes-in-exclude

FIX Double escape namespace separators in class names when excluding fields
This commit is contained in:
Dylan Wagstaff 2017-12-05 16:26:58 +13:00 committed by GitHub
commit 16a5643d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -941,7 +941,10 @@ abstract class SolrIndex extends SearchIndex
{
$fq = array();
foreach ($searchQuery->exclude as $field => $values) {
$excludeq = array();
// Handle namespaced class names
$field = $this->sanitiseClassName($field);
$excludeq = [];
$missing = false;
foreach ($values as $value) {