Issue Bug Closed

#24958BE forms: language selector show superfluous records

Thorsten Kahler 02/04/11, 16:30 updated 10/24/17, 20:18

Description

The language selector in the top of BE forms is intended to show (and switch between) all translations of a certain record.

If there are records in non-default languages, that are not bound to a record in the default language, they are shown as different translations of each other.

1) Create two records of the same kind (tt_content, tt_news, …) on the same page and associate them to different languages.
2) Open one of them in the edit form.
3) Selecting the other language in the language select box at the top will open the absolutely unrelated other record.

The reason is that it’s not checked in SC_alt_doc::languageSwitch() if there’s any value set in $transOrigPointerField (usually: l18n_parent) at all.
(issue imported from #M17486)

Reviews 3