Skip to content

Commit d744907

Browse files
mkalkbrennerdrunken-monkey
authored andcommitted
Issue #2927748 by mkalkbrenner, mstiem, drunken monkey: Fixed Views field handler for multiple processor-defined fields returned by the server.
1 parent b26b3b4 commit d744907

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: CHANGELOG.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Search API 1.x, dev (xxxx-xx-xx):
22
---------------------------------
3+
- #2927748 by mkalkbrenner, mstiem, drunken monkey: Fixed Views field handler
4+
for multiple processor-defined fields returned by the server.
35
- #2928944 by drunken monkey: Removed assert() calls with string parameters.
46
- #2923976 by Martijn Houtman, drunken monkey: Fixed facets with random sorting
57
on Database backend.

Diff for: src/Plugin/views/query/SearchApiQuery.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ protected function addResults(array $results, ViewExecutable $view) {
560560
foreach ($result->getFields(FALSE) as $field_id => $field) {
561561
if ($field->getValues()) {
562562
$path = $field->getCombinedPropertyPath();
563-
$values[$path] = $field->getValues();
564563
try {
565564
$property = $field->getDataDefinition();
566565
// For configurable processor-defined properties, our Views field
@@ -570,13 +569,13 @@ protected function addResults(array $results, ViewExecutable $view) {
570569
// correctly.
571570
if ($property instanceof ConfigurablePropertyInterface) {
572571
$path .= '|' . $field_id;
573-
$values[$path] = $field->getValues();
574572
}
575573
}
576574
catch (SearchApiException $e) {
577575
// If we're not able to retrieve the data definition at this point,
578576
// it doesn't really matter.
579577
}
578+
$values[$path] = $field->getValues();
580579
}
581580
}
582581

0 commit comments

Comments
 (0)