From 8a3eadfa039cd57260fca0ac7cce8f74274b095f Mon Sep 17 00:00:00 2001 From: Ingolf Steinhardt Date: Mon, 30 Dec 2024 20:52:16 +0100 Subject: [PATCH] Fix move item if clipboard not empty --- .../View/Contao2BackendView/ActionHandler/PasteHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Contao/View/Contao2BackendView/ActionHandler/PasteHandler.php b/src/Contao/View/Contao2BackendView/ActionHandler/PasteHandler.php index 57c5f7ce..8e541516 100644 --- a/src/Contao/View/Contao2BackendView/ActionHandler/PasteHandler.php +++ b/src/Contao/View/Contao2BackendView/ActionHandler/PasteHandler.php @@ -113,8 +113,10 @@ protected function process(EnvironmentInterface $environment) assert(\is_string($providerName)); // Check if it is a simple create-paste of a single model, if so, redirect to edit view. + // Only for not ajax calls e.g. move. if ( - $this->isSimpleCreatePaste( + null === $input->getParameter('isAjax') + && $this->isSimpleCreatePaste( $clipboard, $providerName )