Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Translatable fields that are hidden from an entity’s default display may get sorted (and sent to Lingotek) before visible fields, due to the fact that they don’t have an explicit weight in the display mode.
Steps to reproduce
Proposed resolution
Use SortArray::sortByWeightElement()
(with a default weight for hidden fields) instead of SortArray::sortByKeyString()
in LingotekContentTranslationService::getSourceData()
.
Comments
Comment #4
antiorario CreditAttribution: antiorario commented