From 5ae1c7b8366b19b327511fa40104fb6a7f168c19 Mon Sep 17 00:00:00 2001 From: Eric Rosas Date: Thu, 11 Jul 2024 14:08:51 -0700 Subject: [PATCH] Revert deprecated class fix after regression Revert deprecated class fix after regression --- api/plugins/nextbuilds/src/NextBuilds.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/plugins/nextbuilds/src/NextBuilds.php b/api/plugins/nextbuilds/src/NextBuilds.php index 52c1754e..4ebbe700 100755 --- a/api/plugins/nextbuilds/src/NextBuilds.php +++ b/api/plugins/nextbuilds/src/NextBuilds.php @@ -16,14 +16,13 @@ use Craft; use craft\base\Plugin; use craft\elements\Entry; +use craft\events\ElementStructureEvent; use craft\events\ModelEvent; -use craft\events\MoveElementEvent; use craft\helpers\ElementHelper; use craft\services\Plugins; use craft\events\PluginEvent; use castiron\nextbuilds\services\Request as NextRequestService; -use craft\services\Structures; use yii\base\Event; /** @@ -143,9 +142,9 @@ function (Event $event) { ); Event::on( - Structures::class, - Structures::EVENT_AFTER_INSERT_ELEMENT, - function (MoveElementEvent $event) { + Entry::class, + Entry::EVENT_AFTER_MOVE_IN_STRUCTURE, + function (ElementStructureEvent $event) { $entry = $event->sender; if (