[BUGFIX] target to page object must set type parameter 52/47452/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 09:22:23 +0000 (11:22 +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/47452
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

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