- πͺπΈSpain pcambra Asturies
I've found the same issue after a few years, showing fields from Search API, I need to check by the raw value and it is empty.
Here's the workaround I'm using:
function mytheme_preprocess_views_view_fields(&$variables) { $view = $variables['view']; if ($view->id() == 'view_id' && $view->current_display == 'display_name') { foreach ($view->field as $id => $field) { $items = $view->field[$id]->getItems($variables['row']); if (!empty($items)) { $item = reset($items); if (isset($item['raw'])) { $variables['fields'][$id]->raw = $item['raw'] ?: NULL; } } } } }
I've tried the patches here but no dice. I'll be happy to help if there's any direction to pull from :)
- πΊπΈUnited States jacobbell84
Fixing views.inc path to target views_hook.inc instead to support 1.38