From a47570bc00cdb1fd7267c8f873e6b26ef7595186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavs=20G=C5=ABtmanis?= Date: Thu, 19 Dec 2024 14:26:11 +0200 Subject: [PATCH] fix(SFT-1673): preventing propogation when whitelisting localized spam elements --- packages/plugin/src/Services/SpamSubmissionsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin/src/Services/SpamSubmissionsService.php b/packages/plugin/src/Services/SpamSubmissionsService.php index f9c03f26f..4b35a97d6 100644 --- a/packages/plugin/src/Services/SpamSubmissionsService.php +++ b/packages/plugin/src/Services/SpamSubmissionsService.php @@ -36,7 +36,7 @@ public function getSubmissionById($id): ?Submission public function allowSpamSubmission(SpamSubmission $submission): bool { $submission->isSpam = false; - \Craft::$app->elements->saveElement($submission); + \Craft::$app->elements->saveElement($submission, false, false); // HACK: this is dirty, but I wasn't able to find better way to // quickly convert SpamSubmission to Submission