[TYPO3-team-templavoila] RFC: #8924 - Bugfix - processDatamap_afterDatabaseOperations won't properly work within workspaces

Tolleiv.Nietsch info at tolleiv.de
Sun Nov 22 22:55:48 CET 2009


This is an SVN patch request.

Type: Bugfix

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

Branches:
trunk

Problem:
When performing the processDatamap_afterDatabaseOperations after new 
content-element was created within the workspace the passed fieldArray 
contains "-1" as pid-value which makes the performed page-related 
actions useless.

Solution:
The attached patch runs t3lib_BEfunc::fixVersioningPid() on the 
fieldArray which enables proper destinationPointers for the following 
actions.

Additional informations:
All the following operations are  workspace-aware (a.k.a running 
t3lib_BEfunc::getRecordWSOL()) so using the fixVersionPid() is what was 
logically missing there anyways.

Unlike the original patch submitted to this issue this patch performs 
the t3lib_BEfunc::fixVersioningPid() earlier, this way the 
(workspace-aware)  preProcessFieldArrays-block also works on proper data.

Cheers,
Tolleiv

-- 
Tolleiv Nietsch
www.tolleiv.de - www.aoemedia.de


More information about the TYPO3-team-templavoila mailing list