[BUGFIX] Use localize command when translating page record 45/52945/6
authorFrans Saris <franssaris@gmail.com>
Fri, 26 May 2017 13:51:03 +0000 (15:51 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 27 Sep 2017 05:23:25 +0000 (07:23 +0200)
commit594d694e9dc8f42315176eee0b9d516b3622cbcc
tree3e66cafe4a142760cb8a75b0f712040f1a7386b2
parent7a742d689f0afe80f38bbe97966c07a330509834
[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/52945
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/View/PageLayoutView.php