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

Steffen Kamper steffen at sk-typo3.de
Thu Mar 13 14:18:16 CET 2008


"Daniel Pötzinger" <operation-lan at gmx.de> schrieb im Newsbeitrag 
news:mailman.1.1205412691.24243.typo3-team-core at lists.netfielders.de...
> 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.
>
+1 by reading

please use coomon code styling, use spaces:
eg
$_isNewRecord = intval($row['uid'])>0 ? false: true;
etc.

vg  Steffen




More information about the TYPO3-team-core mailing list