Commit f7e20a39 authored by Joachim Dornbusch's avatar Joachim Dornbusch
Browse files

Reset ldapFinInscription when a person is synchronized from the connector source

parent 20263627
Loading
Loading
Loading
Loading
Loading
+5 −0
Changes for module/Oscar/src/Oscar/Connector/ConnectorPersonHydrator.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -187,6 +187,11 @@ class ConnectorPersonHydrator
        $rolesOscar = $this->getRolesOscarByRoleId();
        $this->repport = new ConnectorRepport();

        // La personne est présente dans la source : son compte est (re)activé,
        // la date de fin d'inscription éventuellement enregistrée lors d'une synchronisation
        // précédente est réinitialisée
        $personOscar->setLdapFinInscription(null);

        try {
            $personOscar = $this->factory()->hydrateWithDatas($personOscar, $personData, $connectorName);
        } catch (OscarException $e) {