#96838Translation Wizard fails if l10n_source points to a deleted (or non-existent) record
Description
Given
- a record A in the default language (lang=0, uid=7)
- is copied (free mode) to a second language as B (lang=1, uid=8, l10n_source=7)
- A is then deleted (uid=7, lang=0, deleted=1)
- a new record on lang 0 is created (lang=0, uid=9)
When
- calling the translation wizard by clicking “Translate“
Then
- a 500 error is thrown
Because
- TYPO3 tries to figure out the source language of B by selecting deleted record A
Instead, it should
- handle the situation as if no reference to A existed