Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!8039
Issue
#3446764
. Taxonomy with Depth Views Filter has to respect selected vocabulary on Table Joins
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3446764
. Taxonomy with Depth Views Filter has to respect selected vocabulary on Table Joins
issue/drupal-3446764:3446764-taxonomy-with-depth
into
10.2.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Open
Issue #3446764. Taxonomy with Depth Views Filter has to respect selected vocabulary on Table Joins
Veronica Severyn
requested to merge
issue/drupal-3446764:3446764-taxonomy-with-depth
into
10.2.x
May 13, 2024
Overview
0
Commits
1
Pipelines
1
Changes
1
Closes
#3446764
0
0
Merge request reports
Compare
10.2.x
10.2.x (HEAD)
and
latest version
latest version
2cba5c71
1 commit,
May 13, 2024
1 file
+
14
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php
+
14
−
0
View file @ 66f6d711
Edit in single-file editor
Open in Web IDE
Show full file
@@ -67,6 +67,20 @@ public function query() {
$this
->
tableAlias
=
$this
->
query
->
ensureTable
(
$this
->
view
->
storage
->
get
(
'base_table'
));
}
if
(
!
empty
(
$this
->
options
[
'vid'
]))
{
$def
=
[
'table'
=>
'taxonomy_term_field_data'
,
'field'
=>
'tid'
,
'left_table'
=>
'taxonomy_index'
,
'left_field'
=>
'tid'
,
'type'
=>
'INNER'
,
];
$join
=
\Drupal
::
service
(
'plugin.manager.views.join'
)
->
createInstance
(
'standard'
,
$def
);
$join_index_term
=
$this
->
query
->
addRelationship
(
'ind_data'
,
$join
,
'taxonomy_term_field_data'
);
$this
->
query
->
addWhere
(
$this
->
options
[
'group'
],
"
$join_index_term
.vid"
,
$this
->
options
[
'vid'
],
'IN'
);
}
$this
->
addSubQueryJoin
(
$this
->
value
);
}
Loading