[BUGFIX] Make BackendUtility::viewOnClick honor doc 20/22620/2
authorKasper Ligaard <kasperligaard+typo3-gerrit-review@gmail.com>
Fri, 21 Sep 2012 12:27:28 +0000 (14:27 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Sat, 27 Jul 2013 10:43:27 +0000 (12:43 +0200)
commit120bdf0b61a52de01888a2d9027a67e544cb8262
tree8a1ef736dccc60d02a6d82534c10769d3b66349b
parent5a1304fe567a4c0d7f7f3eac162f626c50b9c1f3
[BUGFIX] Make BackendUtility::viewOnClick honor doc

Make parameter $alternativeUrl work as documented in the docblock
and also as it worked until #22157.
This patch preserves the hook and basically just puts in an
if-statement. Also adding a unit test.

Change-Id: I7d67af438b0a0af51ca7662b3f8286aeec827c77
Fixes: #41165
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/22620
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php