[TYPO3-core] RFC #15400: Bugfix: IRRE - selected items not removed from selector

Stanislas Rolland typo3 at sjbr.ca
Tue Jan 11 23:19:58 CET 2011


Hi Martin,

Here are new versions of the patch as well as an extension for testing 
this issue:

This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=15400

Branches:
- trunk
- TYPO3_4-4

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.

How to reproduce and test:
1. Install attached extension (key: bug_15400).
2. On some page:
    - insert a few "Bug 15400 Record of type 2";
    - insert a "Bug 15400 Record of type 1" and create some relations:
      the used records should be removed from the selector of the
      parent record and from the selectors of the children records.
3. The same behaviour should happen when updating "Bug 15400 Record of
    type 1":
    - on expanding a child, the selector should not contain records
      already used in other children.

Regards,
Stanislas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typo3core_bugfix_15400_typo3_4-4.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110111/fcd332df/attachment-0001.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typo3core_bugfix_15400_trunk.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110111/fcd332df/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T3X_bug_15400-0_0_0-z-201101111640.t3x
Type: application/octet-stream
Size: 2727 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110111/fcd332df/attachment-0001.obj>


More information about the TYPO3-team-core mailing list