[TYPO3-core] RFC: Bug #12977: treeLevel in TSconfig conditions should consider the creation of new pages

Oliver Hader oliver at typo3.org
Tue Dec 8 12:23:41 CET 2009


This is an SVN patch request.

Type: Bugfix

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

Branches: TYPO3_4-3, Trunk

Problem:
The TSconfig condition [treeLevel = 2] counts the level of nestification
in the pagetree. However, in the backend new pages could be created and
the mentioned condition should consider that situation as well.
PIDupinRootline behaves similar in the backend.

Solution:
Increment the tree level calculated out of the rootline by one if a new
page is being edited (TCEforms) or persited (TCEmain).

Notes:
Two new test cases are added to the t3lib_matchCondition_backend test
suite for this behaviour.

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012977.patch
Type: text/x-patch
Size: 2647 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091208/503976dc/attachment.bin>


More information about the TYPO3-team-core mailing list