[BUGFIX] Don't show “cut” and “cut release” at the same time 32/54732/4
authorFrank Naegler <frank.naegler@typo3.org>
Thu, 23 Nov 2017 16:13:35 +0000 (17:13 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Thu, 23 Nov 2017 17:18:54 +0000 (18:18 +0100)
This patchs prevents showing “cut” and “cut release” at the same time in
the clickmenu of the page tree.

Resolves: #81890
Releases: master, 8.7
Change-Id: Ibfc07efec0f2064ffc9885047fce246cd935d368
Reviewed-on: https://review.typo3.org/54732
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/PageProvider.php

index 20acc75..85d0ce7 100644 (file)
@@ -226,7 +226,7 @@ class PageProvider extends RecordProvider
                 $canRender = $this->isRecordInClipboard('copy');
                 break;
             case 'cut':
-                $canRender = $this->canBeCut();
+                $canRender = $this->canBeCut() && !$this->isRecordInClipboard('cut');
                 break;
             case 'cutRelease':
                 $canRender = $this->isRecordInClipboard('cut');