Skip to content

Commit

Permalink
[BUGFIX] Show hidden translated record only once in clipboard
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Łukasz Uznański authored and NeoBlack committed Feb 12, 2018
1 parent 3adb753 commit ec15a3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions typo3/sysext/backend/Classes/Clipboard/Clipboard.php
Expand Up @@ -491,6 +491,10 @@ public function getLocalizations($table, $parentRec)
$queryBuilder->expr()->neq(
$tcaCtrl['languageField'],
$queryBuilder->createNamedParameter(0, \PDO::PARAM_INT)
),
$queryBuilder->expr()->gt(
'pid',
$queryBuilder->createNamedParameter(-1, \PDO::PARAM_INT)
)
);

Expand Down

0 comments on commit ec15a3c

Please sign in to comment.