Skip to content
Snippets Groups Projects
Commit d7b49344 authored by Florian Joriot's avatar Florian Joriot
Browse files

correction categorie chaine vide au lieu de int

parent 20c67af0
No related branches found
No related tags found
No related merge requests found
Pipeline #27771 passed
......@@ -28,7 +28,7 @@ class IndicateurHydrator implements HydratorInterface {
public function hydrate(array $data, object $object) : object
{
$code = (isset($data['code']) AND trim($data['code']) !== '')?trim($data['code']):null;
$categorie = (isset($data['categorie']))?$this->getCategorieService()->getCategorie($data['categorie']):null;
$categorie = (isset($data['categorie']) && $data['categorie'] !== '')?$this->getCategorieService()->getCategorie($data['categorie']):null;
$namespace = (isset($data['namespace']) AND trim($data['namespace']) !== '')?trim($data['namespace']):null;
/** @var Indicateur $object */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment