[BUGFIX] Use localize command when translating page record 20/54220/2
authorFrans Saris <franssaris@gmail.com>
Fri, 26 May 2017 13:51:03 +0000 (15:51 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 27 Sep 2017 06:48:56 +0000 (08:48 +0200)
commit030cfb295629bdc0dcb22a5b174dc044dd65144b
tree4ed147c1aa0f3bb4a8cf33abe110286025be2ddc
parent8f76c5e9a2ea018b2a451762877d1d933494862b
[BUGFIX] Use localize command when translating page record

Currently, when using the dropdown to create a page translation within
the Page Module, DataHandler is called with just a simple "new" record
of type "pages_language_overlay".

However, a classic "localize" DataHandler command is more appropriate,
allowing to utilize several localization functionalities built in.

In order to achieve this, the option tags in the selector contain the full
URL to the DataHandler call, as well as the redirect to FormEngine (which
in turn redirects back to the current page module URL).

Resolves: #81345
Releases: master, 8.7
Change-Id: I740c2d1d11494963283bc14b1f534bd344d0764a
Reviewed-on: https://review.typo3.org/54220
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/View/PageLayoutView.php