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
+2 −3
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();
    }
    }