diff --git a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php index d4cecdf669c6b45f4fde75666a3acbd7dc54891b..1ebb040d2fbaebc474673669ed8bb1ff0ce5124b 100644 --- a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php +++ b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php @@ -1227,20 +1227,22 @@ class EditDocumentController ) { $this->registerSaveButtonToButtonBar($buttonBar, ButtonBar::BUTTON_POSITION_LEFT, 2); $this->registerViewButtonToButtonBar($buttonBar, ButtonBar::BUTTON_POSITION_LEFT, 3); - $this->registerNewButtonToButtonBar( - $buttonBar, - ButtonBar::BUTTON_POSITION_LEFT, - 4, - $sysLanguageUid, - $l18nParent - ); - $this->registerDuplicationButtonToButtonBar( - $buttonBar, - ButtonBar::BUTTON_POSITION_LEFT, - 5, - $sysLanguageUid, - $l18nParent - ); + if ($this->firstEl['cmd'] !== 'new') { + $this->registerNewButtonToButtonBar( + $buttonBar, + ButtonBar::BUTTON_POSITION_LEFT, + 4, + $sysLanguageUid, + $l18nParent + ); + $this->registerDuplicationButtonToButtonBar( + $buttonBar, + ButtonBar::BUTTON_POSITION_LEFT, + 5, + $sysLanguageUid, + $l18nParent + ); + } $this->registerDeleteButtonToButtonBar($buttonBar, ButtonBar::BUTTON_POSITION_LEFT, 6); $this->registerColumnsOnlyButtonToButtonBar($buttonBar, ButtonBar::BUTTON_POSITION_LEFT, 7); $this->registerHistoryButtonToButtonBar($buttonBar, ButtonBar::BUTTON_POSITION_RIGHT, 1);