Skip to content
Snippets Groups Projects
Commit 0027a896 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Christian Kuhn
Browse files

[BUGFIX] Bring back functionality for $uniqueIds in SelectSingleElement

This resolves a todo for a missing usage of a filled
array called "$uniqueIds".

This array had two responsibilities:

1. For inline fields with "foreign_unique" set, all
already used unique ids must be excluded from the
select items.

2. Ensure a select field inside an inline field,
which functions as one (symmetric) side of a
mn-table, will not have the same field we are
currently in, in its select items. In short: This
prevents self-references.

The previous functionality has been restored with
added type-safety.

This functionality was probably removed by accident
during a refactoring process.

Resolves: #96487
Related: #64762
Releases: main, 11.5
Change-Id: I75d68fdaba5bdf896c336fe428652d15d760ac4c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72910


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent d090bece
Branches
Tags
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