|
@@ -644,9 +644,9 @@ class OrganizationFactory
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
- $this->deleteDolibarrSociety($organization);
|
|
|
|
|
|
|
+ $this->switchSocietyToProspect($organization);
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
- $this->logger->critical("An error happened while deleting the Dolibarr society, please proceed manually.");
|
|
|
|
|
|
|
+ $this->logger->critical("An error happened while updating the Dolibarr society, please proceed manually.");
|
|
|
$this->logger->debug($e);
|
|
$this->logger->debug($e);
|
|
|
$withError = true;
|
|
$withError = true;
|
|
|
}
|
|
}
|
|
@@ -731,9 +731,9 @@ class OrganizationFactory
|
|
|
// $this->typo3Service->deleteSite($organization->getId());
|
|
// $this->typo3Service->deleteSite($organization->getId());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- protected function deleteDolibarrSociety(Organization $organization): void
|
|
|
|
|
|
|
+ protected function switchSocietyToProspect(Organization $organization): void
|
|
|
{
|
|
{
|
|
|
- $this->dolibarrApiService->deleteDolibarrSociety($organization->getId());
|
|
|
|
|
|
|
+ $this->dolibarrApiService->switchSocietyToProspect($organization->getId());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
protected function deleteLocalDirectories(Organization $organization): void
|
|
protected function deleteLocalDirectories(Organization $organization): void
|