[FEATURE] Add duplicate button 01/53101/19
authorWilli Wehmeier <wwwehmeier@gmail.com>
Sat, 3 Jun 2017 18:35:05 +0000 (20:35 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Tue, 13 Feb 2018 12:24:38 +0000 (13:24 +0100)
commit6af66f1d77c691a59fe97e16e5afe27071fdcdf3
tree797791b27c1df242eae29d72d2f09af83781c5bb
parent85aa8905c17c9ca83a2931c5f959ba39f8a98471
[FEATURE] Add duplicate button

This patch provides a new "duplicate" button inside of the topbar of the
edit record form next to the close button. This button creates and opens
a new copy of the current element which is positioned right below the
existing one.
If there are unsaved changes in the currently open record, a modal
appears with options to cancel, dismiss the changes and clone or save
the changes and clone the changed record.

Resolves: #77685
Releases: master
Change-Id: I9e2a0f02fc9c4452f0a7d868ea17aeacb9375d95
Reviewed-on: https://review.typo3.org/53101
Reviewed-by: Wolfgang Klinger <wolfgang@wazum.com>
Tested-by: Wolfgang Klinger <wolfgang@wazum.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Resources/Public/JavaScript/ContextMenuActions.js
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js
typo3/sysext/core/Documentation/Changelog/master/Feature-77685-CreateASaveAndOpenCopyButtonWhenSavingAContentElement.rst [new file with mode: 0644]
typo3/sysext/lang/Resources/Private/Language/locallang_alt_doc.xlf
typo3/sysext/lang/Resources/Private/Language/locallang_core.xlf