Change NewsletterCoupon::cleanupSensitiveData signature
This change allows passing body array and retuning body array so that NewsletterEntity instance doesn't need to get passed around [MAILPOET-4678]
This commit is contained in:
@@ -187,7 +187,10 @@ class NewsletterSaveController {
|
||||
// reset sent at date
|
||||
$duplicate->setSentAt(null);
|
||||
|
||||
$duplicate = $this->newsletterCoupon->cleanupSensitiveData($duplicate);
|
||||
$body = $duplicate->getBody();
|
||||
if ($body) {
|
||||
$duplicate->setBody($this->newsletterCoupon->cleanupBodySensitiveData($body));
|
||||
}
|
||||
$this->newslettersRepository->persist($duplicate);
|
||||
$this->newslettersRepository->flush();
|
||||
|
||||
|
Reference in New Issue
Block a user