closes #48 : date d'inscription associé au subscriber ajouter à la mailing list

This commit is contained in:
antonin gallon 2026-02-12 11:06:53 +01:00
parent 3f5595144d
commit 861cc67ccc
2 changed files with 8 additions and 1 deletions

View file

@ -16,6 +16,10 @@ tabs:
fields:
email:
type: email
inscriptionDate:
type: date
display: MM/DD/YYYY
default: today
- width: 1/2
sections:
newsletters:

View file

@ -22,7 +22,10 @@ return [
];
}
$newSubscriber = ['email' => $email];
$newSubscriber = [
'email' => $email,
'inscriptionDate' => date('Y-m-d')
];
$subscribers[] = $newSubscriber;
$page->update([