Loading src/Plugin/views/display/ViewsBlockOverride.php +8 −1 Original line number Diff line number Diff line Loading @@ -296,15 +296,22 @@ class ViewsBlockOverride extends Block { foreach ($config['contextual_filter'] as $values) { if ($values['enabled']) { // Contextual filters can have multiple values. if (is_array($values['value'])) { $active_values = []; foreach ($values['value'] as $value) { if ($value) $active_values[] = $value; if ($value) { $active_values[] = $value; } } $values['value'] = implode("+", $active_values); } $args[] = $values['value']; } else { // This is needed to allow multiple contextual filters. $args[] = NULL; } } $this->view->setArguments($args); } Loading Loading
src/Plugin/views/display/ViewsBlockOverride.php +8 −1 Original line number Diff line number Diff line Loading @@ -296,15 +296,22 @@ class ViewsBlockOverride extends Block { foreach ($config['contextual_filter'] as $values) { if ($values['enabled']) { // Contextual filters can have multiple values. if (is_array($values['value'])) { $active_values = []; foreach ($values['value'] as $value) { if ($value) $active_values[] = $value; if ($value) { $active_values[] = $value; } } $values['value'] = implode("+", $active_values); } $args[] = $values['value']; } else { // This is needed to allow multiple contextual filters. $args[] = NULL; } } $this->view->setArguments($args); } Loading