Commit 19a7c4f3 authored by Stéphane Bouvry's avatar Stéphane Bouvry
Browse files

Fix : Erreur lors de la suppression d'un rôle sur une organisation

parent da45844d
Loading
Loading
Loading
Loading
+1 −2
Changes for module/Oscar/src/Oscar/Service/PersonService.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -836,11 +836,10 @@ class PersonService implements ServiceLocatorAwareInterface, EntityManagerAwareI
            foreach ( $os->getOrganizationActivititiesPrincipalActive($organizationPerson->getOrganization()) as $activity ){
                $this->getNotificationService()->purgeNotificationsPersonActivity($activity, $organizationPerson->getPerson());
            }

        }
        $this->getEntityManager()->remove($organizationPerson);
        $this->getEntityManager()->flush();
    }
    }