PHRAS-3665 fix not send reminder on update (#4090)

* fix not send reminder on update

* by default not send reminder
This commit is contained in:
Aina Sitraka
2022-07-12 09:29:18 +03:00
committed by GitHub
parent 4ee8b67e79
commit cb96e4c7fd
13 changed files with 98 additions and 49 deletions

View File

@@ -59,7 +59,7 @@ class PhraseanetExtension extends \Twig_Extension
{
return [
// change this version when you change JS file to force the navigation to reload js file
'assetFileVersion' => 69
'assetFileVersion' => 70
];
}

View File

@@ -142,6 +142,12 @@ class ShareBasketWorker implements WorkerInterface
$basketParticipant->setCanAgree($participant['agree']);
$basketParticipant->setCanModify($participant['modify']);
$basketParticipant->setCanSeeOthers($participant['see_others']);
if ($notSendReminder) {
// column reminded to be not null
$basketParticipant->setReminded(new DateTime());
}
$manager->persist($basketParticipant);
$manager->flush();