Checkpoint: Corrections de deux bugs critiques :
1. Bug d'inscription - Mauvais apprenant associé :
- Problème : La procédure apprenants.create était une procédure admin, empêchant la création d'apprenants depuis la page publique
- Solution : Création d'une nouvelle procédure publique apprenants.createPublic
- Résultat : Les inscriptions sont maintenant correctement associées au bon apprenant
2. Bug email de confirmation - Variable {{prenomApprenant}} non remplacée :
- Problème : Le template d'inscription contenait {{prenomApprenant}} qui n'était pas remplacé
- Solution : Mise à jour du bodyContent du template d'inscription dans la base de données avec les bonnes variables
- Résultat : Les emails de confirmation affichent maintenant correctement le prénom et le nom de l'apprenant
Les deux bugs sont corrigés et prêts pour la publication.
This commit is contained in:
9
.manus/db/db-query-1764695817072.json
Normal file
9
.manus/db/db-query-1764695817072.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": "UPDATE emailTemplates \nSET bodyContent = '<p>Cher(e) {{prenomApprenant}} {{nomApprenant}},</p><p>Votre inscription à la formation <strong>{{nomFormation}}</strong> (séquence <strong>{{nomSequence}}</strong>) a bien été enregistrée.</p><p><strong>Lieu :</strong> {{lieu}}</p><p>Vous recevrez prochainement les invitations Outlook pour bloquer votre agenda.</p><p>À bientôt !</p>'\nWHERE type = 'inscription'",
|
||||
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute UPDATE emailTemplates \nSET bodyContent = '<p>Cher(e) {{prenomApprenant}} {{nomApprenant}},</p><p>Votre inscription à la formation <strong>{{nomFormation}}</strong> (séquence <strong>{{nomSequence}}</strong>) a bien été enregistrée.</p><p><strong>Lieu :</strong> {{lieu}}</p><p>Vous recevrez prochainement les invitations Outlook pour bloquer votre agenda.</p><p>À bientôt !</p>'\nWHERE type = 'inscription'",
|
||||
"rows": [],
|
||||
"messages": [],
|
||||
"stdout": "",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 56
|
||||
}
|
||||
Reference in New Issue
Block a user