Commit 7e0b2a7d authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

correction #50647

parent aefa6301
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -270,9 +270,12 @@ class ServiceReferentielService extends AbstractEntityService

            if ($serviceAllreadyExists) {
                $result = $serviceAllreadyExists;

                if ($result->getId() != $entity->getId()) {
                    //on remove l'ancien service puisque les volumes horaires vont être accrochés sur un service déjà existant
                    parent::delete($entity);
                } else {
                    $result = parent::save($entity);
                }
            } else {
                $sourceOse = $this->getServiceSource()->getOse();