Skip to content
Snippets Groups Projects
Commit 9987b0f2 authored by Frédéric BISSON's avatar Frédéric BISSON Committed by Pierre Dureau
Browse files

Force view to be built before trying to render it.

parent af7f07d7
Branches 2.0.x
No related tags found
No related merge requests found
Pipeline #503746 skipped
......@@ -40,6 +40,7 @@ class ViewFieldSource extends ViewsSourceBase {
return ['#markup' => ''];
}
// Get the output of the field.
$view->build();
$field_output = $view->style_plugin->getField($row_index, $field_name);
// Remove field if need it.
if ($this->isViewFieldHidden($field_name, $field_output, $view)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment