Skip to content

Commit

Permalink
fix(SFT-1673): preventing propogation when whitelisting localized spa…
Browse files Browse the repository at this point in the history
…m elements
  • Loading branch information
gustavs-gutmanis committed Dec 19, 2024
1 parent 07d0a9d commit a47570b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin/src/Services/SpamSubmissionsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a47570b

Please sign in to comment.