[BUGFIX] Make BackendUtility::viewOnClick honor doc 21/22621/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:40 +0000 (12:43 +0200)
commit9f783b82e99b448cc2d10d716f2e9a10b5d73339
tree8d8ec3edb29bb6a366e11a0958016ff5f36ae22c
parent0646bbaa7b8de3d2f80ca735862830160f60cd6b
[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/22621
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php