Commit 697fe186 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Typo

parent 0eeb680a
Loading
Loading
Loading
Loading
Loading
+4 −3
Changes for module/Oscar/src/Oscar/Service/ContractDocumentService.php: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ class ContractDocumentService implements UseOscarConfigurationService, UseEntity
            if (!copy($uploadPath, $destination)) {
                $this->getLoggerService()->critical("Impossible de déplacer '$uploadPath' ver '$destination'");
                throw new OscarException(
                    "Un problème est survenu lors de la création de la procédure de signature, inpossible de copier le document"
                    "Un problème est survenu lors de la création de la procédure de signature, impossible de copier le document"
                );
            }
        } catch (\Exception $e) {
@@ -285,20 +285,21 @@ class ContractDocumentService implements UseOscarConfigurationService, UseEntity
        }

        try {
            error_log('ICI');

            // Création du processus
            // TODO Découplage Process / SignatureFlow
            $process = $this->getProcessService()->createUnconfiguredProcess($fileName, $signatureFlow->getId());
            $this->getProcessService()->configureProcess($process, $signatureFlowDatas, $signatureFlow);
            $document->setProcess($process);
            /****/
            $this->getEntityManager()->flush();
            error_log('LA');
            $this->getProcessService()->trigger($process, true);
            $this->getActivityLogService()->addUserInfo(
                "a déclenché un circuit de signature pour '$document'",
                LogActivity::CONTEXT_ACTIVITY,
                $activity->getId()
            );
            /****/
        } catch (\Exception $e) {
            $this->getLoggerService()->critical($e->getMessage());
            throw $e;