[TYPO3-core] RFC #16188: Bug: In t3lib_BEfunc::viewOnClick, using parameter $altUrl doesn't ignore all other parameters

Mikkel Ricky mikkel at mikkelricky.dk
Sun Oct 31 17:13:12 CET 2010


This is an SVN patch request.

Type: Bugfix

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

Branches: TYPO3_4-4 & trunk

Problem:
The method documentation for t3lib_BEfunc::viewOnClick states that

      * @param	string	 $altUrl is an alternative URL which - if set - 
will make all other parameters ignored: The function will just return 
the window.open command wrapped around this URL!

This is, however, not the case and it hasn't been since Rev. 4482.

Solution: use $altUrl as (complete) view url if set. Otherwise compute 
view url based on other parameters.


Best regards,
Mikkel Ricky
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_16188.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101031/d02133a4/attachment.asc>


More information about the TYPO3-team-core mailing list