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

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.

For the same reason sorting does not work on untranslated fields. Things are sorted as expected in on language, but not in another.

Proposed resolution

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

Remaining tasks

Add the watchdog error mentioned in #193.
Open a followup issue to Improve the query. See #157-#158

User interface changes

None.

API changes

None, I guess.

Original report by @vitalie


Viewing all articles
Browse latest Browse all 291170

Trending Articles



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