[TYPO3-core] RFC: #3908: DisplayCond => VERSION:IS:false always returns true

Daniel Pötzinger operation-lan at gmx.de
Thu Mar 13 13:56:07 CET 2008


Hi

This is an SVN patch request.

Type: Bugfix

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

Branches: 4.2

Problem:
The check if a record is a version do only work in the Live workspace
(check pid==-1).
This check fails in workspaces: because then the $row['pid'] has the 
real pid (WSOverlay).

In addition the request is that if you create new records in a workspace 
it is conflict free and usefull to display the unique fields - therefore 
new records in a WS should not be handled as version.


Solution:

you have to detect versions like that:
- user is in live workspace: then the pid ==-1 check is correct
- user is in workspace: then everything the user does is creating a new 
version of course. But because of ws-overlay the pid==-1 check fails.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug3908.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080313/702af0ff/attachment.txt 


More information about the TYPO3-team-core mailing list