X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcarnet.php;h=172e654ba05792fe8f44bbe97d218e4ce0fefb98;hb=c9910f7559bb0cfd787b4fb73f864000f28e38cc;hp=4f80b4993ef1ae03210abdf9e9420e3c9f30dad4;hpb=82af3fc3b6e003b0cbbcf4faf4ed4f0ea5c07570;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(); }