Project

General

Profile

Bug #96460 » bugfix.patch

Hannes Bochmann, 2022-01-04 18:45

View differences:

typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php
$movePlaceholder = BackendUtility::getMovePlaceholder($table, $liveRec['uid'], 'uid', $record['t3ver_wsid']);
if (!empty($movePlaceholder)) {
$this->softOrHardDeleteSingleRecord($table, (int)$movePlaceholder['uid']);
$dataHandler->deleteL10nOverlayRecords($table, (int)$movePlaceholder['uid']);
}
}
} elseif ($recordVersionState->equals(VersionState::NEW_PLACEHOLDER_VERSION)) {
......
$dataHandler->deleteEl($table, (int)$id);
if (is_array($placeholderRecord)) {
$this->softOrHardDeleteSingleRecord($table, (int)$placeholderRecord['uid']);
$dataHandler->deleteL10nOverlayRecords($table, (int)$placeholderRecord['uid']);
}
}
} else {
(1-1/2)