[BUGFIX] IRRE: Selected items remain in selector with foreign_unique
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 8 Feb 2012 05:15:32 +0000 (00:15 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Fri, 10 Feb 2012 17:24:34 +0000 (18:24 +0100)
commit6affdae0c6e449619efa352341bbcd4676541c02
tree9741d9421dc53960001e4ecc4297a0077072504d
parenta9e4868a929faa4dddf0012e869689503aaee627
[BUGFIX] IRRE: Selected items remain in selector with foreign_unique

Problem: When an inline field is defined as unique (foreign_unique
is set), selected items are removed neither from the inline record
selector, nor from the children record selectors.

Solution: Remove the used records from all selectors. Also, when
updating and collapseAll is set, remove records already used from
the child record after its ajax-retrieval/expansion.

Change-Id: I84c7fa3bfd8139f07604c05ab80c5bf4d90af736
Fixes: #21102
Releases: 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/8955
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
t3lib/class.t3lib_tceforms.php
t3lib/class.t3lib_tceforms_inline.php
t3lib/jsfunc.inline.js