Skip to content
Snippets Groups Projects

Issue #3262507: Unable to render EntityFields in views with search_api_opensearch

1 file
+ 16
0
Compare changes
  • Side-by-side
  • Inline
@@ -718,6 +718,22 @@ class SearchApiQuery extends QueryPluginBase {
// Gather any properties from the search results.
foreach ($result->getFields(FALSE) as $field_id => $field) {
// If the field id is one of the fields lazy loaded by ResultRow, do not
// copy the value onto the result row directly.
// @see \Drupal\search_api\Plugin\views\ResultRow::__get().
if (in_array(
$field_id,
[
'search_api_id',
'search_api_datasource',
'search_api_language',
'search_api_relevance',
'search_api_excerpt',
]
)) {
continue;
}
if ($field->getValues()) {
$path = $field->getCombinedPropertyPath();
try {
Loading