[BUGFIX] Show hidden translated record only once in clipboard 83/54883/5
authorŁukasz Uznański <l.uznanski@macopedia.pl>
Thu, 30 Nov 2017 10:23:25 +0000 (11:23 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Mon, 12 Feb 2018 16:17:12 +0000 (17:17 +0100)
Right now, when user in workspace move element with translation
to the clipboard, translation is rendered twice in clipboard.
This bugfix prevents this behaviour.

Resolves: #82804
Releases: master, 8.7
Change-Id: I21a38800d2d5474650f8220340621841cb33f852
Reviewed-on: https://review.typo3.org/54883
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Clipboard/Clipboard.php

index 2699ad8..6e23ca6 100644 (file)
@@ -491,6 +491,10 @@ class Clipboard
                     $queryBuilder->expr()->neq(
                         $tcaCtrl['languageField'],
                         $queryBuilder->createNamedParameter(0, \PDO::PARAM_INT)
+                    ),
+                    $queryBuilder->expr()->gt(
+                        'pid',
+                        $queryBuilder->createNamedParameter(-1, \PDO::PARAM_INT)
                     )
                 );