Set new hash when duplicating newsletter

[MAILPOET-3275]
This commit is contained in:
Rostislav Wolny
2020-11-19 09:24:27 +01:00
committed by Veljko V
parent dfc4c286df
commit e22c192078
2 changed files with 12 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class NewsletterSaveController {
// reset status
$duplicate->setStatus(NewsletterEntity::STATUS_DRAFT);
// reset hash
$duplicate->setHash(null);
$duplicate->setHash(Security::generateHash());
// reset sent at date
$duplicate->setSentAt(null);