Commit 264656a6 authored by Florian Joriot's avatar Florian Joriot
Browse files

Correction légère sur la verification pour l'agrément académique

parent 7f3f3c6e
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for module/Agrement/src/Assertion/AgrementAssertion.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ class AgrementAssertion extends AbstractAssertion
        $structureContractualise = $tblContrat->getStructureContractualise($entity->getIntervenant());
        $ids                     = array_column($structureContractualise, 'id');

        if (in_array($entity->getStructure()->getId(), $ids)) {
        if ($entity->getStructure() != NULL && in_array($entity->getStructure()->getId(), $ids)) {
            return false;
        } else {
            if ($structure = $entity->getStructure()) {
@@ -251,7 +251,7 @@ class AgrementAssertion extends AbstractAssertion
        $structureContractualise = $tblContrat->getStructureContractualise($entity->getIntervenant());
        $ids                     = array_column($structureContractualise, 'id');

        if (in_array($entity->getStructure()->getId(), $ids)) {
        if ($entity->getStructure() != NULL && in_array($entity->getStructure()->getId(), $ids)) {
            return false;
        } else {
            if ($structure = $entity->getStructure()) {