[BUGFIX] Make BackendUtility::viewOnClick honor doc 26/14826/8
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:41:26 +0000 (12:41 +0200)
commit82b308615816a341fadbe06b668244b8ccaa0ee2
treeb0334e69a5595c2effd0a8172eacfda58ffcab40
parent643f2e9cef2e7997e2c7ae5b8d8bbf279d9983c1
[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/14826
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Kasper Ligaard
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php