Active
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2018 at 13:54 UTC
Updated:
25 Nov 2021 at 15:34 UTC
Jump to comment: Most recent
Hi,
I have a site with two languages installed and no translation. If I create a view with a contextual filter on the content language I can provide single arguments de or en for the view and get the nodes in that language in return. If I try to combine the two filters de+en I get no results. I would expect this to work like taxonomy where I can user multiple arguments to get my nodes.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rogerpfaffI've tested on simlytest.me with a standard drupal installation.
1. Create a second language
2. Create content in two languages
3. Create a view for the content
4. Add contextual filter language and try filtering
The SQL that is created at this point looks like this
Obviously the langcode does not get expanded to the single values in the WHERE condition.
In the past there was an option in views to handle multiple arguments and this option is gone now.
Comment #3
rogerpfaffadded a related issue
Comment #4
rogerpfaffanother related issue
Comment #5
rogerpfaffAs using query parameters also doesn't work I add #2876802: Views - Contextual filter from query parameter or regular parameter not working with multiple values also