[TYPO3-core] FYI24: #14128: Tree list cache does not recognize 'this' for 'pidInList'
Patrick Broens
patrick at netcreators.com
Thu Apr 15 16:45:53 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 15-4-2010 15:56, Dmitry Dulepov wrote:
> Hi!
>
> This is SVN patch request.
>
> Type: bug, trivial
>
> Branches: trunk, 4.3, 4.2
>
> BT reference: http://bugs.typo3.org/view.php?id=14128
>
> Problem: 'select' TypoScript function allows 'this' keyword to indicate the
> current page. tslib_cObj::getTreeList() expects only integer parameters and
> cannot work with 'this'. Thus nothing will be cached when using 'this' in
> 'pidInList'.
>
> Solution: substitute 'this' with the current page id before passing it to
> the getTrteeList().
>
Please use identical '===' comparison operator instead of equal '=='.
if ($value === 'this') {
After that, +1 after reading
Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvHJqEACgkQNgvIvIQSN/xv+QCgh3ytWiM+icre5ZFRCNfCiohA
TGQAn3kpNlZ4XgkKsUJo/DIn8+Vx3svl
=hyGu
-----END PGP SIGNATURE-----
More information about the TYPO3-team-core
mailing list