Skip to content

Commit

Permalink
[BUGFIX] Fix error copying pages with outdated user permissions
Browse files Browse the repository at this point in the history
If the user permissions contain DB tables which are not available
anymore, a notice is turned into an exception.

Resolves: #101547
Releases: main, 12.4, 11.5
Change-Id: I98cd8fb74893c31fe8ca6c14e4ee87ddb0e578ae
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82126
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
georgringer authored and bmack committed Dec 16, 2023
1 parent 5ecc0f7 commit 6dd6df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/core/Classes/DataHandling/DataHandler.php
Expand Up @@ -3466,7 +3466,7 @@ public function copySpecificPage($uid, $destPid, $copyTablesArray, $first = fals
if ($theNewRootID) {
foreach ($copyTablesArray as $table) {
// All records under the page is copied.
if ($table && is_array($GLOBALS['TCA'][$table]) && $table !== 'pages') {
if ($table && is_array($GLOBALS['TCA'][$table] ?? false) && $table !== 'pages') {
$fields = ['uid'];
$languageField = null;
$transOrigPointerField = null;
Expand Down

0 comments on commit 6dd6df8

Please sign in to comment.