Project

General

Profile

Bug #30229 » patch-30229-master.diff

Michael Voehringer, 2014-08-20 17:38

View differences:

typo3/sysext/core/Classes/DataHandling/DataHandler.php
if ($table != 'pages') {
$mres = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', $table, 'pid=' . (int)$uid . $this->deleteClause($table));
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($mres)) {
$this->copyMovedRecordToNewLocation($table, $row['uid']);
$this->deleteVersionsForRecord($table, $row['uid'], $forceHardDelete);
$this->deleteRecord($table, $row['uid'], TRUE, $forceHardDelete);
if(BackendUtility::getRecord($table, $row['uid'])){
$this->copyMovedRecordToNewLocation($table, $row['uid']);
$this->deleteVersionsForRecord($table, $row['uid'], $forceHardDelete);
$this->deleteRecord($table, $row['uid'], TRUE, $forceHardDelete);
}
}
$GLOBALS['TYPO3_DB']->sql_free_result($mres);
}
(3-3/3)