Skip to content
Snippets Groups Projects
Commit 64060a96 authored by Sean Blommaert's avatar Sean Blommaert
Browse files

Issue #2923147 by seanB: Ajax views break when using pagination (extra fix to...

Issue #2923147 by seanB: Ajax views break when using pagination (extra fix to reinitialize views handlers for ajax requests)
parent e93893c4
No related branches found
Tags 8.x-2.0-alpha3
No related merge requests found
......@@ -59,6 +59,10 @@ function viewsreference_views_pre_build(ViewExecutable $view) {
if (!empty($view->getRequest()->request->get('viewsreference'))) {
$view->element['#viewsreference'] = $view->getRequest()->request->get('viewsreference');
// For ajax views we reset all handlers and make the view initialize again
// to allow changes from the settings plugins.
$view->display_handler->handlers = [];
$view->inited = FALSE;
}
// Let all settings plugins alter the view.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment