[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)
committerTolleiv Nietsch <info@tolleiv.de>
Fri, 10 Feb 2012 07:40:02 +0000 (08:40 +0100)
commit908b2a7f9f9359aaa1063dacf38736269440e73c
tree8175148e129cdc44f2fddd642f8df16c85819686
parente0caff0f3c52b5c26253bc265a3f272139d7145e
[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: I54c840419b4f3cf31626d6c4e63650101ae22cab
Fixes: #21102
Releases: 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/8892
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/class.t3lib_tceforms.php
t3lib/class.t3lib_tceforms_inline.php
t3lib/jsfunc.inline.js