Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291491

Views should not condition joins on the langcode of fields that are not translatable

$
0
0

Problem/Motivation

When creating a node view with both translatable and non translatable fields, the view filter on language adds a join condition on the langcode of all fields (even those that have not been translated). This causes no results to be found in the languages that are other than the default language the non translated field were saved in.

Proposed resolution

Before applying the join to langcode on the fields, check whether the field is translatable.

Remaining tasks

Write patch.
Write test.

User interface changes

None.

API changes

None, I guess.

Original report by @vitalie


Viewing all articles
Browse latest Browse all 291491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>