diff --git a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php index 070d4769f96fc576f20a3835a2f9011340ce5d9a..b6543e8051ae346fcca5fbdd1cda892a94792b35 100644 --- a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php +++ b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php @@ -1379,7 +1379,6 @@ class EditDocumentController extends AbstractModule array( 'element' => $this->firstEl['table'] . ':' . $this->firstEl['uid'], 'revert' => 'ALL_FIELDS', - 'sumUp' => -1, 'returnUrl' => $this->R_URI, ) ) diff --git a/typo3/sysext/backend/Classes/Controller/PageLayoutController.php b/typo3/sysext/backend/Classes/Controller/PageLayoutController.php index a61176954259034564aaa722f881d5cfe11eee6a..9b658f00cfd3a8c0d8b3286a91cdb314e2ea6f3b 100755 --- a/typo3/sysext/backend/Classes/Controller/PageLayoutController.php +++ b/typo3/sysext/backend/Classes/Controller/PageLayoutController.php @@ -1214,7 +1214,6 @@ class PageLayoutController array( 'element' => $this->eRParts[0] . ':' . $this->eRParts[1], 'revert' => 'ALL_FIELDS', - 'sumUp' => -1, 'returnUrl' => $this->R_URI, ) ) diff --git a/typo3/sysext/backend/Classes/Controller/Wizard/RteController.php b/typo3/sysext/backend/Classes/Controller/Wizard/RteController.php index 6357978517f91ab45cc4d3309ec39f92924c774b..272185e6c192dae120d1b3e6a6ff34e922b0ff09 100644 --- a/typo3/sysext/backend/Classes/Controller/Wizard/RteController.php +++ b/typo3/sysext/backend/Classes/Controller/Wizard/RteController.php @@ -316,7 +316,6 @@ class RteController extends AbstractWizardController array( 'element' => $this->P['table'] . ':' . $this->P['uid'], 'revert' => 'field:' . $this->P['field'], - 'sumUp' => -1, 'returnUrl' => $this->R_URI, ) ) diff --git a/typo3/sysext/backend/Classes/History/RecordHistory.php b/typo3/sysext/backend/Classes/History/RecordHistory.php index 74285ed914a448d4c0979127e6d51ad8785a41d6..acd500115bd69d48b92598309eab407c07e18d1a 100644 --- a/typo3/sysext/backend/Classes/History/RecordHistory.php +++ b/typo3/sysext/backend/Classes/History/RecordHistory.php @@ -132,28 +132,6 @@ class RecordHistory */ public function main() { - // Single-click rollback - if ($this->getArgument('revert') && $this->getArgument('sumUp')) { - $this->rollbackFields = $this->getArgument('revert'); - $this->showInsertDelete = 0; - $this->showSubElements = 0; - $element = explode(':', $this->element); - /** @var QueryBuilder $queryBuilder */ - $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('sys_history'); - $record = $queryBuilder - ->select('*') - ->from('sys_history') - ->where($queryBuilder->expr()->eq('tablename', $queryBuilder->createNamedParameter($element[0]))) - ->andWhere($queryBuilder->expr()->eq('recuid', (int)$element[1])) - ->orderBy('uid', 'DESC') - ->execute() - ->fetch(); - $this->lastSyslogId = $record['sys_log_uid']; - $this->createChangeLog(); - $completeDiff = $this->createMultipleDiff(); - $this->performRollback($completeDiff); - HttpUtility::redirect($this->returnUrl); - } // Save snapshot if ($this->getArgument('highlight') && !$this->getArgument('settings')) { $this->toggleHighlight($this->getArgument('highlight'));