Import [1801] and add naissance_ini in the fields to define to add new users
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 5 May 2007 12:56:16 +0000 (12:56 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 5 May 2007 12:56:16 +0000 (12:56 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.14@1802 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/admin.php
templates/register/inscription.reussie.tpl

index 7b3483a..81dffeb 100644 (file)
@@ -617,7 +617,7 @@ class AdminModule extends PLModule
         switch ($action) {
           case 'add':
             $fields = array('nom', 'nom_ini', 'prenom',
-                            'prenom_ini', 'promo', 'promo_sortie', 'flags',
+                            'prenom_ini', 'naissance_ini', 'promo', 'promo_sortie', 'flags',
                             'matricule', 'matricule_ax', 'perms');
             $importer->forceValue('promo', $promo);
             $importer->forceValue('promo_sortie', $promo + 3);
index 0590d19..89f4dd9 100644 (file)
@@ -25,7 +25,7 @@
 {from full=#from#}
 {to addr="$forlife@polytechnique.org"}
 {subject text="Bienvenue parmi les X sur le web !"}
-{elseif $mail_par eq 'text'}
+{elseif $mail_part eq 'text'}
 
 {$prenom}, félicitations pour ton inscription !