Fixed bug #17161: be_layout foreign_table_where excludes local page when GRSP set...
authorSteffen Gebert <steffen.gebert@typo3.org>
Sat, 22 Jan 2011 14:38:25 +0000 (14:38 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sat, 22 Jan 2011 14:38:25 +0000 (14:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10250 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/stddb/tbl_pages.php

index 3b028e8..d6daa47 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 
        * Fixed bug #17107: page/branch action submenus close whole menu on click (Thanks to Stefan Galinski)
        * Fixed bug #17145: Replace label "Hide" in Pagetree menu with "Disable" (Thanks to Stefan Galinski)
+       * Fixed bug #17161: be_layout foreign_table_where excludes local page when GRSP set (Thanks to Jo Hasenau)
 
 2011-01-21  Sebastian Kurfuerst  <sebastian@typo3.org>
 
index 9082663..965f986 100644 (file)
@@ -731,7 +731,7 @@ $TCA['pages'] = array(
                        'config' => array(
                                'type' => 'select',
                                'foreign_table' => 'backend_layout',
-                               'foreign_table_where' => 'AND ( ( ###PAGE_TSCONFIG_ID### = 0 AND ###STORAGE_PID### = 0 ) OR ( backend_layout.pid = ###PAGE_TSCONFIG_ID### OR backend_layout.pid = ###STORAGE_PID### ) ) AND backend_layout.hidden = 0',
+                               'foreign_table_where' => 'AND ( ( ###PAGE_TSCONFIG_ID### = 0 AND ###STORAGE_PID### = 0 ) OR ( backend_layout.pid = ###PAGE_TSCONFIG_ID### OR backend_layout.pid = ###STORAGE_PID### ) OR ( ###PAGE_TSCONFIG_ID### = 0 AND backend_layout.pid = ###THIS_UID### ) ) AND backend_layout.hidden = 0',
                                'items' => array(
                                        array('', 0),
                                        array('LLL:EXT:cms/locallang_tca.xml:pages.backend_layout.none', -1)
@@ -748,7 +748,7 @@ $TCA['pages'] = array(
                        'config' => array(
                                'type' => 'select',
                                'foreign_table' => 'backend_layout',
-                               'foreign_table_where' => 'AND ( ( ###PAGE_TSCONFIG_ID### = 0 AND ###STORAGE_PID### = 0 ) OR ( backend_layout.pid = ###PAGE_TSCONFIG_ID### OR backend_layout.pid = ###STORAGE_PID### ) ) AND backend_layout.hidden = 0',
+                               'foreign_table_where' => 'AND ( ( ###PAGE_TSCONFIG_ID### = 0 AND ###STORAGE_PID### = 0 ) OR ( backend_layout.pid = ###PAGE_TSCONFIG_ID### OR backend_layout.pid = ###STORAGE_PID### ) OR ( ###PAGE_TSCONFIG_ID### = 0 AND backend_layout.pid = ###THIS_UID### ) ) AND backend_layout.hidden = 0',
                                'items' => array(
                                        array('', 0),
                                        array('LLL:EXT:cms/locallang_tca.xml:pages.backend_layout.none', -1)