Fixed bug #4917: Wrong links inside mounted page with overlay (thanks to Melanie...
authorMichael Stucki <michael.stucki@typo3.org>
Fri, 6 Jul 2007 13:13:34 +0000 (13:13 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Fri, 6 Jul 2007 13:13:34 +0000 (13:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-0@2383 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 39b976f..cc162b3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-07-06  Michael Stucki  <michael@typo3.org>
 
        * Fixed bug #3544: RTE-config in PageTS-config not loaded when in draft-workspace
+       * Fixed bug #4917: Wrong links inside mounted page with overlay (thanks to Melanie Meyer / Franz Ripfel)
 
 2007-07-02  Oliver Hader  <oh@inpublica.de>
 
index 7a4b9a7..8d8c70f 100755 (executable)
@@ -5460,6 +5460,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'];