Project

General

Profile

Bug #34636 » DatabaseRecordList.php.patch

Teamgeist Medien, 2016-06-21 11:04

View differences:

typo3_src-7.6.4/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php (revision )
$this->addActionToCellGroup($cells, $hideAction, 'hide');
}
// "Delete" link:
if ($permsEdit && ($table === 'pages' && $localCalcPerms & Permission::PAGE_DELETE || $table !== 'pages' && $this->calcPerms & Permission::CONTENT_EDIT)) {
$disableDeleteFlag = $this->getBackendUserAuthentication()->getTSConfig('options.disableDelete');
if ($permsEdit && ($table === 'pages' && $localCalcPerms & Permission::PAGE_DELETE || $table !== 'pages' && $this->calcPerms & Permission::CONTENT_EDIT) && $disableDeleteFlag['value']!=1) {
// Check if the record version is in "deleted" state, because that will switch the action to "restore"
if ($this->getBackendUserAuthentication()->workspace > 0 && isset($row['t3ver_state']) && (int)$row['t3ver_state'] === 2) {
$actionName = 'restore';
......
} else {
$deleteAction = $this->spaceIcon;
}
$this->addActionToCellGroup($cells, $deleteAction, 'delete');
// "Levels" links: Moving pages into new levels...
if ($permsEdit && $table == 'pages' && !$this->searchLevels) {
(2-2/2)