[BUGFIX] target to page object must set type parameter 76/47376/2
authorJigal van Hemert <jigal.van.hemert@typo3.org>
Wed, 23 Mar 2016 21:30:57 +0000 (22:30 +0100)
committerSusanne Moog <typo3@susannemoog.de>
Thu, 31 Mar 2016 08:25:05 +0000 (10:25 +0200)
Setting typolink.target to the name of a page object must set the
type query parameter to the typeNum of that page object. By initializing
$theTypeP to an empty string the type is not forced to zero.

Resolves: #75245
Releases: master, 7.6
Change-Id: I3aac0e43849f495f00344a07a358c5526bdf339c
Reviewed-on: https://review.typo3.org/47376
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

index 6e2cfbf..b3fc1be 100644 (file)
@@ -5856,7 +5856,7 @@ class ContentObjectRenderer
             $title = $this->stdWrap($title, $conf['title.']);
         }
 
-        $theTypeP = 0;
+        $theTypeP = '';
         // Detecting kind of link
         $linkType = $this->detectLinkTypeFromLinkParameter($linkParameter);
         switch ($linkType) {