diff --git a/module/ExportRh/src/Hydrator/ExportRhHydrator.php b/module/ExportRh/src/Hydrator/ExportRhHydrator.php index 562b4bf255520da653bca861d9df398046f54bef..15aa5176530b97b39b77bfc383f0d3028be9862a 100644 --- a/module/ExportRh/src/Hydrator/ExportRhHydrator.php +++ b/module/ExportRh/src/Hydrator/ExportRhHydrator.php @@ -24,7 +24,7 @@ class ExportRhHydrator implements HydratorInterface //On mappe automatiquement le bon statut RH selon le statut OSE $statut = $object->getStatut(); $statutRh = $statut->getCodesCorresp2(); - $typeEmploi = ($statut->getCodesCorresp3()) ? 'UCNVA' : 'UCNVCE'; + $typeEmploi = (strtolower(trim($statut->getCodesCorresp3())) == 'oui') ? 'UCNVA' : 'UCNVCE'; $data['connecteurForm'] = [ 'statut' => $statutRh,