[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 15:06:32 CET 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016846.patch
Type: text/x-patch
Size: 3415 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101228/4acffc95/attachment.bin>
More information about the TYPO3-team-core
mailing list