Hi,

I've created a content type with five fields. Some of them are translatable and some not. The field "nummer" was set as sort criterium. This field is not translatable. Sort order is only correct in the standard language. In translations the sort order is date of creation.

It seems to me, that the field is taken as empty in translation.

If I make this field translateable and save the translation again, the sort order is correct.

CommentFileSizeAuthor
views.jpg96.52 KBollioi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ollioi created an issue. See original summary.

MustangGB’s picture

Project: Views (for Drupal 7) » Drupal core
Version: 8.x-3.x-dev » 8.3.x-dev
Component: Miscellaneous » views.module
cburschka’s picture

Issue summary: View changes

This is very likely a duplicate of #2451657: Views should not condition joins on the langcode of fields that are not translatable, which is fixed in 8.4.x but will likely not be committed to 8.3.x anymore.

However, the patches do work in 8.3.x, and we've been using those for our projects.

ollioi’s picture

Hi,
This is very likely a duplicate of #2451657: Views should not condition joins on the langcode of fields that are not translatable ...

Yes, I applied the patch and now the sort order is also correct in translation. Thank you!

ollioi’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.