[TYPO3-core] RFC: Bug 5564: IRRE - foreign_selector/foreign_unique on click issue

Oliver Hader oh at inpublica.de
Tue May 8 13:57:57 CEST 2007


This is a SVN patch request.

Problem:
Setting foreign_selector and foreign_unique to same field makes it
impossible to select a certain item from the selector via onClick. The
first item of the selector gets added regardless of which was actually
clicked.

Solution:
It is possible to use uniqueness with and without a selector. If used
without a selector, newly created children on an intermediate table
don't have an information about which record is related - thus the first
one of the remaining possibilities is used.
If uniqueness is used with a selector, this information is already given
and using the first available item isn't necessary at all in this case.

Comments:
Thanks to Nikolas Hagelstein for pointing out the problem and testing.
I'm going to commit this in one week if nobody objects.

References:
http://bugs.typo3.org/view.php?id=5564
http://lists.netfielders.de/pipermail/typo3-project-irre/2007-May/000141.html

Branches: TYPO3_4-1 & Trunk


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0005564_v2.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070508/067a7eec/attachment.diff 


More information about the TYPO3-team-core mailing list