Fixed bug #15258: Creating multiple pages doesn't consider the group permissions...
authorSteffen Kamper <info@sk-typo3.de>
Sun, 29 Aug 2010 13:03:37 +0000 (13:03 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sun, 29 Aug 2010 13:03:37 +0000 (13:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-4@8726 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index 6ba3c07..dfd8e8e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-29  Steffen Kamper  <steffen@typo3.org>
+
+       * Fixed bug #15258: Creating multiple pages doesn't consider the group permissions for all pages (Thanks to Lorenz Ulrich)
+
 2010-08-29  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #15294: treeFilterReset disappears + minor optimization (Thanks to Felix Kopp)
index ac4aeb9..b722264 100644 (file)
@@ -692,7 +692,9 @@ class t3lib_TCEmain {
                                                                if (strstr($pid_value,'NEW'))   {       // If a NEW... id
                                                                        if (substr($pid_value,0,1)=='-') {$negFlag=-1;$pid_value=substr($pid_value,1);} else {$negFlag=1;}
                                                                        if (isset($this->substNEWwithIDs[$pid_value]))  {       // Trying to find the correct numerical value as it should be mapped by earlier processing of another new record.
-                                                                               $old_pid_value = $pid_value;
+                                                                               if ($negFlag === 1) {
+                                                                                       $old_pid_value = $this->substNEWwithIDs[$pid_value];
+                                                                               }
                                                                                $pid_value=intval($negFlag*$this->substNEWwithIDs[$pid_value]);
                                                                        } else {$OK = 0;}       // If not found in the substArray we must stop the process...
                                                                } elseif ($pid_value>=0 && $this->BE_USER->workspace!==0 && $TCA[$table]['ctrl']['versioning_followPages'])     {       // PID points to page, the workspace is an offline space and the table follows page during versioning: This means we must check if the PID page has a version in the workspace with swapmode set to 0 (zero = page+content) and if so, change the pid to the uid of that version.