[TYPO3-core] RFC: Bug #16846: Sorting order of newly created child elements on workspaces is wrong

Oliver Hader oliver.hader at typo3.org
Tue Dec 28 16:32:09 CET 2010


FYI: Committed to SVN Trunk (rev. 9950)
(François will do a post-review tomorrow)

olly


Am 28.12.10 15:06, schrieb Oliver Hader:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=16846
> 
> Branches: Trunk
> 
> Problem:
> Imagine the following scenario:
> * IRRE field at a page record
> * add new child records in workspace mode
> 
> The sorting order of the records is stored incorrectly and will also be
> mixed up on publishing these new records. The reason for that is, that
> the sorting order of the placeholder records (which are created for new
> workspaces elements as a "live pendant") is not updated.
> 
> Solution:
> Fetch the accordant record which shall be updated with a new sorting
> index from the database if it's a symmetric relation (this was already
> the case) and if currently the table is used in a workspace. Then, if
> the current record has a placeholder record, update the sorting field
> there as well.
> 
> Notes:
> Since this is related to IRRE 1:n with foreign_field only - I might
> consider to commit it directly - however, I'd like to have some opinions
> on the patch. Thanks in advance!
> 
> olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org


More information about the TYPO3-team-core mailing list