diff options
| author | polo <ordipolo@gmx.fr> | 2025-12-23 18:02:00 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-12-23 18:02:00 +0100 |
| commit | 79409bed093890d38cb2c60f8b6af079854cf8d2 (patch) | |
| tree | d30799c43d1566552f000e80d3ee52c3af0806ed /src/controller | |
| parent | 774437d3196878388e294a3833a73e900000b5e4 (diff) | |
| download | cms-79409bed093890d38cb2c60f8b6af079854cf8d2.tar.gz cms-79409bed093890d38cb2c60f8b6af079854cf8d2.tar.bz2 cms-79409bed093890d38cb2c60f8b6af079854cf8d2.zip | |
choix durée stockage emails sensibles configurables aussi, bug durée emails sensibles
Diffstat (limited to 'src/controller')
| -rw-r--r-- | src/controller/ContactFormController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller/ContactFormController.php b/src/controller/ContactFormController.php index 0724401..468b732 100644 --- a/src/controller/ContactFormController.php +++ b/src/controller/ContactFormController.php | |||
| @@ -19,7 +19,7 @@ class ContactFormController | |||
| 19 | static public function setEmailsRetentionPeriod(EntityManager $entityManager, array $json): void | 19 | static public function setEmailsRetentionPeriod(EntityManager $entityManager, array $json): void |
| 20 | { | 20 | { |
| 21 | $form_data = $entityManager->find('App\Entity\NodeData', $json['id']); | 21 | $form_data = $entityManager->find('App\Entity\NodeData', $json['id']); |
| 22 | $form_data->updateData('retention_period', (int)$json['months']); | 22 | $form_data->updateData($json['field'], (int)$json['months']); |
| 23 | $entityManager->persist($form_data); | 23 | $entityManager->persist($form_data); |
| 24 | $entityManager->flush(); | 24 | $entityManager->flush(); |
| 25 | echo json_encode(['success' => true, 'months' => $json['months']]); | 25 | echo json_encode(['success' => true, 'months' => $json['months']]); |
