Skip to content
Snippets Groups Projects
Commit e5a3bb11 authored by Nicole Cordes's avatar Nicole Cordes Committed by Oliver Hader
Browse files

[BUGFIX] Return correct source record for relations

This change addresses a flaw when resolving ancestor ids of 1:n
relationships - resolving `l10n_source` pointer always was `0`.

Besides that now only non-empty `l10n_parent` or `l10n_source` are
returned as integer. Otherwise `null` is returned and signals that
a corresponding ancestor could not be resolved at all.

Scenario `localizeParentContentChainLanguageSynchronizationSource` of
`DataHandling\IRRE\ForeignField\Modify\ActionTest` was given already,
however `l10n_source` fields were missing in their TCA.

Resolves: #86141
Releases: master, 10.4, 9.5
Change-Id: Ia0e3d9accd5c1998f4fd971861262c158cc8f838
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/58049


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAlexander Opitz <opitz.alexander@googlemail.com>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarAlexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent ae8060c3
Branches
Tags
Showing
with 117 additions and 100 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment