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
!5723
List field double joined breaks the query
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
List field double joined breaks the query
issue/drupal-3401605:3401605-exposed-filter-with
into
11.x
Overview
0
Commits
4
Pipelines
4
Changes
2
Open
List field double joined breaks the query
Len Swaneveld
requested to merge
issue/drupal-3401605:3401605-exposed-filter-with
into
11.x
Dec 7, 2023
Overview
0
Commits
4
Pipelines
4
Changes
2
Closes
#3401605
0
0
Merge request reports
Compare
11.x
version 3
320ff4ca
Dec 11, 2023
version 2
add2f726
Dec 7, 2023
version 1
c7cbe768
Dec 7, 2023
11.x (base)
and
latest version
latest version
9d828268
4 commits,
Mar 14, 2024
version 3
320ff4ca
4 commits,
Dec 11, 2023
version 2
add2f726
2 commits,
Dec 7, 2023
version 1
c7cbe768
1 commit,
Dec 7, 2023
2 files
+
167
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
core/modules/views/src/ManyToOneHelper.php
+
5
−
7
View file @ 9d828268
Edit in single-file editor
Open in Web IDE
Show full file
@@ -192,13 +192,11 @@ public function ensureMyTable() {
$join
->
type
=
'LEFT'
;
if
(
!
empty
(
$this
->
handler
->
view
->
many_to_one_tables
[
$field
]))
{
foreach
(
$this
->
handler
->
view
->
many_to_one_tables
[
$field
]
as
$value
)
{
$join
->
extra
=
[
[
'field'
=>
$this
->
handler
->
realField
,
'operator'
=>
'!='
,
'value'
=>
$value
,
'numeric'
=>
!
empty
(
$this
->
handler
->
definition
[
'numeric'
]),
],
$join
->
extra
[]
=
[
'field'
=>
$this
->
handler
->
realField
,
'operator'
=>
'!='
,
'value'
=>
$value
,
'numeric'
=>
!
empty
(
$this
->
handler
->
definition
[
'numeric'
]),
];
}
}
Loading