Compare commits

...

1 Commits

Author SHA1 Message Date
Thomas MONCHICOURT 57299b841e Fix : check birthday if empty talent 2018-08-23 16:09:03 +02:00
@@ -28,7 +28,9 @@ class TalentProfileType extends AbstractType
$user = $options['data'];
$user->getCompany()->init();
$birthday = $options['data']->getBirthday();
$options['data']->setBirthday($birthday->format('d/m/Y'));
if(!empty($birthday)){
$options['data']->setBirthday($birthday->format('d/m/Y'));
}
$builder
->add('firstname', null, array(
'label' => 'Prénom',