If a node is part of a translation set and then updated to language neutral, then the "tnid" property is still set on the language neutral node. The logic in translation_language_switch_links_alter() incorrectly treats this node as a translated node since it checks for tnid before checking if the node is language neutral.

Comments

recrit created an issue. See original summary.

recrit’s picture

Issue summary: View changes
recrit’s picture

Status: Active » Needs review
StatusFileSize
new1.55 KB

The attached patch rearranges the logic to check for node existence, language neutral and language supported type before the "tnid" check.

recrit’s picture

Updated comments to better reflect logic blocks.

recrit’s picture

Status: Needs review » Needs work
recrit’s picture

Work needed - determine if failed tests are an issue or if they just need updated to accommodate the changes.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.