Bug description
We've met a buggy behaviour of a view having two reference-field filters in an OR subgroup.
That's how filters looked like:
And this is the resulting query:
There are two issues:
1. AND operator is used instead of OR one.
2. Even if OR operator would be used, INNER join breaks the OR logic. (The fix for this is being handled separately in #1766338: Incorrect filter group OR behavior, LEFT JOIN changed to INNER JOIN)
STR
1. Create new Drupal 8 installation with a Standard profile.
2. Export configuration.
3. Copy/replace files from attached configuration-parts.tgz.
4. Import/synchronize the configuration.
5. At admin/structure/views/settings enable the "Show the SQL query" option.
6. Visit admin/structure/views/view/many_to_one_test and see the resulting query.
Remaining tasks
- decide if we want to somehow determine when the INNER join can be used