X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcarnet.php;h=172e654ba05792fe8f44bbe97d218e4ce0fefb98;hb=6995cd8573dfed49a8197bc40e5ebf53d67d8e00;hp=4f80b4993ef1ae03210abdf9e9420e3c9f30dad4;hpb=d53c12097f4e82ad4657de86f199699973dee29f;p=platal.git diff --git a/modules/carnet.php b/modules/carnet.php index 4f80b49..172e654 100644 --- a/modules/carnet.php +++ b/modules/carnet.php @@ -373,7 +373,7 @@ class CarnetModule extends PLModule 'timestamp' => $date, 'date' => date('Ymd', $date), 'tomorrow' => date('Ymd', $tomorrow), - 'hruid' => $profile->hrid(), + 'email' => $profile->owner()->bestEmail(), 'summary' => 'Anniversaire de ' . $profile->fullName(true) ); } @@ -419,7 +419,7 @@ class CarnetModule extends PLModule { $pf = new ProfileFilter(new UFC_Contact(S::user())); $vcard = new VCard($photos == 'photos'); - $vcard->addProfiles($pf->getProfiles()); + $vcard->addProfiles($pf->getProfiles(null, Profile::FETCH_ALL)); $vcard->show(); }