[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:33:49 +0000 (18:33 +0100)
commitcd481f98ca84e40901f1078c47aefff833f6a08f
tree3ddceea804732a1600deee46be3cc0cc4fd1952b
parentd52d362cd364c9f4f540d2dcd2c3b572699e3376
[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: I56ea89380c431af148216836da8913db76dc095e
Fixes: #21102
Releases: 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/8956
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