Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
facets
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
facets
Merge requests
!26
Issue
#3052574
: Facets with AJAX not working in most of situations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3052574
: Facets with AJAX not working in most of situations
issue/facets-3052574:3052574-facets-with-ajax
into
8.x-1.x
Overview
1
Commits
11
Pipelines
0
Changes
8
Open
eduardo morales alberti
requested to merge
issue/facets-3052574:3052574-facets-with-ajax
into
8.x-1.x
3 years ago
Overview
1
Commits
11
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
version 3
version 11
6b339a91
3 years ago
version 10
c4bbea5c
3 years ago
version 9
e76409fb
3 years ago
version 8
e48abb86
3 years ago
version 7
a9386871
3 years ago
version 6
b115efe9
3 years ago
version 5
c36db92e
3 years ago
version 4
1824e667
3 years ago
version 3
8ac5cab7
3 years ago
version 2
f5248934
3 years ago
version 1
2f438310
3 years ago
8.x-1.x (HEAD)
and
version 4
latest version
b7afb394
11 commits,
3 years ago
version 11
6b339a91
10 commits,
3 years ago
version 10
c4bbea5c
9 commits,
3 years ago
version 9
e76409fb
8 commits,
3 years ago
version 8
e48abb86
7 commits,
3 years ago
version 7
a9386871
6 commits,
3 years ago
version 6
b115efe9
5 commits,
3 years ago
version 5
c36db92e
4 commits,
3 years ago
version 4
1824e667
3 commits,
3 years ago
version 3
8ac5cab7
2 commits,
3 years ago
version 2
f5248934
1 commit,
3 years ago
version 1
2f438310
1 commit,
3 years ago
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Controller/FacetBlockAjaxController.php
+
2
−
1
Options
@@ -10,6 +10,7 @@ use Drupal\Core\Controller\ControllerBase;
use
Drupal\Core\Path\CurrentPathStack
;
use
Drupal\Core\PathProcessor\PathProcessorManager
;
use
Drupal\Core\Routing\CurrentRouteMatch
;
use
Drupal\facets\Plugin\Block\FacetBlock
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\RequestStack
;
@@ -168,7 +169,7 @@ class FacetBlockAjaxController extends ControllerBase {
$block_view
=
NULL
;
// @todo We should not create an instance if we have already created one.
$block_instance
=
$this
->
blockManager
->
createInstance
(
$summary_plugin_id
);
if
(
$block_instance
)
{
if
(
$block_instance
&&
$block_instance
instanceof
FacetBlock
)
{
$block_view
=
$block_instance
->
build
();
if
(
$block_view
)
{
// Replace content facets summary plugin ID selector.
Loading