X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Fsrc%2FController%2FViewAjaxController.php;h=d204766f28dba1801b6efc33c4d9024b6d45868f;hp=c40cf857660712c67092cfb1d9c661b92cf3599f;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/modules/views/src/Controller/ViewAjaxController.php b/web/core/modules/views/src/Controller/ViewAjaxController.php index c40cf8576..d204766f2 100644 --- a/web/core/modules/views/src/Controller/ViewAjaxController.php +++ b/web/core/modules/views/src/Controller/ViewAjaxController.php @@ -142,7 +142,7 @@ class ViewAjaxController implements ContainerInjectionInterface { throw new NotFoundHttpException(); } $view = $this->executableFactory->get($entity); - if ($view && $view->access($display_id)) { + if ($view && $view->access($display_id) && $view->setDisplay($display_id) && $view->display_handler->getOption('use_ajax')) { $response->setView($view); // Fix the current path for paging. if (!empty($path)) {