Fixed bug #17161: be_layout foreign_table_where excludes local page when GRSP set...
[Packages/TYPO3.CMS.git] / t3lib / stddb / tbl_pages.php
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)