[BUGFIX] Don't show “cut” and “cut release” at the same time 33/54733/3
authorFrank Naegler <frank.naegler@typo3.org>
Thu, 23 Nov 2017 16:13:35 +0000 (17:13 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 27 Nov 2017 22:27:00 +0000 (23:27 +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/54733
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/PageProvider.php

index 477fc1d..7d845db 100644 (file)
@@ -211,7 +211,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');