#89249Changing language of a translated record to default should set l10n_parent to 0
Description
Way to reproduce:
Create a record.
Translate it to a translation-language.
Edit the translated record and set its language back to default language.
The frontend then overlays the original record with its translation (which exist in the same language) and shows the translated record anyway.
Reason is that the l10n_parent is still in the database.
I tested this with news and tt_content records but expect to reproduce this with all kind of records as long they follow the default translation behaviour.
Don’t know about pages… ?
I think the solution for this is: When a record is set to the default language the l10n_parent field schould be cleared or set to “0” in the database.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.