Fixed bug #4917: Wrong links inside mounted page with overlay (thanks to Melanie...
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 6 Feb 2007 23:55:54 +0000 (23:55 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 6 Feb 2007 23:55:54 +0000 (23:55 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2012 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 5b150a5..3b0c552 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-02-07  Michael Stucki  <michael@typo3.org>
 
-        * Added feature #4476: Allow limitation of config.linkVars
+       * Added feature #4476: Allow limitation of config.linkVars
+       * Fixed bug #4917: Wrong links inside mounted page with overlay (thanks to Melanie Meyer / Franz Ripfel)
 
 2007-02-06  Oliver Hader  <oh@inpublica.de>
 
index 9badd2c..48baedb 100755 (executable)
@@ -5440,6 +5440,11 @@ class tslib_cObj {
                                foreach($tCR_rootline as $tCR_data)     {
                                        foreach($inverseTmplRootline as $rlKey => $invTmplRLRec)        {
 
+                                                       // Force accumulating when in overlay mode: Links to this page have to stay within the current branch
+                                               if ($invTmplRLRec['_MOUNT_OL'] && ($tCR_data['uid']==$invTmplRLRec['uid']))     {
+                                                       $startMPaccu = TRUE;
+                                               }
+
                                                        // Accumulate MP data:
                                                if ($startMPaccu && $invTmplRLRec['_MP_PARAM']) {
                                                        $rl_mpArray[] = $invTmplRLRec['_MP_PARAM'];