From e9d2119e9eb5d3bf478fdaefa3d48b1df1903282 Mon Sep 17 00:00:00 2001 From: Ingolf Steinhardt Date: Mon, 23 Sep 2024 16:41:33 +0200 Subject: [PATCH] Fix create and copy handler check getResponse --- src/View/ActionHandler/CopyHandler.php | 6 +++--- src/View/ActionHandler/CreateHandler.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/View/ActionHandler/CopyHandler.php b/src/View/ActionHandler/CopyHandler.php index 1cfb3fa..c74d4c2 100644 --- a/src/View/ActionHandler/CopyHandler.php +++ b/src/View/ActionHandler/CopyHandler.php @@ -3,7 +3,7 @@ /** * This file is part of contao-community-alliance/dc-general-contao-frontend. * - * (c) 2015-2023 Contao Community Alliance. + * (c) 2015-2024 Contao Community Alliance. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -13,7 +13,7 @@ * @package contao-community-alliance/dc-general-contao-frontend * @author Richard Henkenjohann * @author Ingolf Steinhardt - * @copyright 2015-2023 Contao Community Alliance. + * @copyright 2015-2024 Contao Community Alliance. * @license https://github.com/contao-community-alliance/dc-general-contao-frontend/blob/master/LICENSE LGPL-3.0 * @filesource */ @@ -99,7 +99,7 @@ public function handleEvent(ActionEvent $event): void } // Only run when no response given yet. - if ('' !== $event->getResponse()) { + if (null !== $event->getResponse()) { return; } diff --git a/src/View/ActionHandler/CreateHandler.php b/src/View/ActionHandler/CreateHandler.php index ae5c858..cfbfdc3 100644 --- a/src/View/ActionHandler/CreateHandler.php +++ b/src/View/ActionHandler/CreateHandler.php @@ -76,7 +76,7 @@ public function handleEvent(ActionEvent $event): void } // Only run when no response given yet. - if ('' !== $event->getResponse()) { + if (null !== $event->getResponse()) { return; }