Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix create and copy handler check getResponse #47

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/View/ActionHandler/CopyHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -13,7 +13,7 @@
* @package contao-community-alliance/dc-general-contao-frontend
* @author Richard Henkenjohann <richardhenkenjohann@googlemail.com>
* @author Ingolf Steinhardt <info@e-spin.de>
* @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
*/
Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/View/ActionHandler/CreateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Loading