closes #48 : date d'inscription associé au subscriber ajouter à la mailing list
This commit is contained in:
parent
3f5595144d
commit
861cc67ccc
2 changed files with 8 additions and 1 deletions
|
|
@ -16,6 +16,10 @@ tabs:
|
|||
fields:
|
||||
email:
|
||||
type: email
|
||||
inscriptionDate:
|
||||
type: date
|
||||
display: MM/DD/YYYY
|
||||
default: today
|
||||
- width: 1/2
|
||||
sections:
|
||||
newsletters:
|
||||
|
|
|
|||
|
|
@ -22,7 +22,10 @@ return [
|
|||
];
|
||||
}
|
||||
|
||||
$newSubscriber = ['email' => $email];
|
||||
$newSubscriber = [
|
||||
'email' => $email,
|
||||
'inscriptionDate' => date('Y-m-d')
|
||||
];
|
||||
$subscribers[] = $newSubscriber;
|
||||
|
||||
$page->update([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue