[BUGFIX] BE-Layout provider must filter deleted records 10/24910/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 20 Oct 2013 15:32:35 +0000 (17:32 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 21 Oct 2013 04:30:33 +0000 (06:30 +0200)
Deleted records must be filtered from the select list.

Resolves: #52983
Releases: 6.2
Change-Id: Ic98fab6d53426c92b3536a9f9ccb46c0b814f2eb
Reviewed-on: https://review.typo3.org/24910
Reviewed-by: Wouter Wolters
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/backend/Classes/View/BackendLayout/DefaultDataProvider.php

index 3b30b04..0f10afe 100644 (file)
@@ -75,7 +75,7 @@ class DefaultDataProvider implements DataProviderInterface {
                $data = $this->getDatabaseConnection()->exec_SELECTgetSingleRow(
                        '*',
                        'backend_layout',
-                       'uid=' . intval($identifier) . BackendUtility::BEenableFields('backend_layout')
+                       'uid=' . intval($identifier) . BackendUtility::BEenableFields('backend_layout') . BackendUtility::deleteClause('backend_layout')
                );
                if (is_array($data)) {
                        $backendLayout = $this->createBackendLayout($data);
@@ -147,7 +147,7 @@ class DefaultDataProvider implements DataProviderInterface {
                                        ( ' . intval($pageTsConfigId[$fieldName]) . ' = 0 AND ' . intval($storagePid) . ' = 0 )
                                        OR ( backend_layout.pid = ' . intval($pageTsConfigId[$fieldName]) . ' OR backend_layout.pid = ' . intval($storagePid) . ' )
                                        OR ( ' . intval($pageTsConfigId[$fieldName]) . ' = 0 AND backend_layout.pid = ' . intval($pageUid) . ' )
-                               )' . BackendUtility::BEenableFields('backend_layout'),
+                               ) ' . BackendUtility::BEenableFields('backend_layout') . BackendUtility::deleteClause('backend_layout'),
                        '',
                        'sorting ASC'
                );