[BUGFIX] Fix paste button in page module with mode "languages" 76/58076/2
authorManuel Selbach <manuel_selbach@yahoo.de>
Mon, 20 Aug 2018 17:55:37 +0000 (19:55 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 30 Aug 2018 06:07:32 +0000 (08:07 +0200)
A content element can once again be pasted directly at a specific
position with the help of the paste button when in the "languages" mode.

Releases: master, 8.7
Resolves: #85911
Change-Id: I08e48361b45c4cffaf83c4b7b92f70303ab8babf
Reviewed-on: https://review.typo3.org/58076
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/View/PageLayoutView.php

index 44dbeee..c403c7d 100644 (file)
@@ -648,7 +648,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                 . $row['uid'] . '" data-table="tt_content" data-uid="' . $row['uid'] . '"' . $displayNone . '>' . $singleElementHTML . '</div>';
 
                             if ($this->tt_contentConfig['languageMode']) {
-                                $singleElementHTML .= '<div class="t3-page-ce t3js-page-ce">';
+                                $singleElementHTML .= '<div class="t3-page-ce" data-colpos="' . $columnId . '">';
                             }
                             $singleElementHTML .= '<div class="t3js-page-new-ce t3-page-ce-wrapper-new-ce" id="colpos-' . $columnId . '-' . 'page-' . $id .
                                 '-' . StringUtility::getUniqueId() . '">';