From 7c452dc482eabfce03ff9f0bb3b78b813af04a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr> Date: Tue, 7 Dec 2021 10:43:05 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20contr=C3=B4le=20not=20null=20si=20?= =?UTF-8?q?insee=20provisoire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/Application/Validator/NumeroINSEEValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Application/src/Application/Validator/NumeroINSEEValidator.php b/module/Application/src/Application/Validator/NumeroINSEEValidator.php index 177bd7630d..73f94beb88 100755 --- a/module/Application/src/Application/Validator/NumeroINSEEValidator.php +++ b/module/Application/src/Application/Validator/NumeroINSEEValidator.php @@ -91,9 +91,9 @@ class NumeroINSEEValidator extends NumeroINSEE $civilite = $this->getOption('civilite'); $this->provisoire = $this->getProvisoire(); - + if ($this->getProvisoire()) { - return true; + return !empty($value); } //Désactivation du test civilité sur l'insee (cas personnes changeant de sexe) -- GitLab