Commit 8c146b51 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction problème refus et acceptation des candidatures (#63060)

parent 7fe54cb7
Loading
Loading
Loading
Loading
Loading
+12 −0
Changes for data/ddl/table/UNICAEN_MAIL_MAIL.php: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -141,6 +141,18 @@ return [
            'position'    => 6,
            'commentaire' => NULL,
        ],
        'REPLY_TO'                  => [
            'name'        => 'REPLY_TO',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 500,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 12,
            'commentaire' => NULL,
        ],
    ],
];

+0 −12
Changes for module/Application/src/Service/WorkflowService.php: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -287,23 +287,11 @@ class WorkflowService extends AbstractService
                }
            }
        }
        //New EntityManager if closed
        if (!$this->entityManager->isOpen()) {
            $connection = $this->entityManager->getConnection();
            $config     = $this->entityManager->getConfiguration();

            $this->entityManager = new EntityManager(
                $connection,
                $config
            );
        }

        if (array_key_exists($intervenant->getId(), $this->feuillesDeRoute)) {
            foreach ($this->feuillesDeRoute[$intervenant->getId()] as $fdr) {
                foreach ($fdr as $etp) {
                    /** @var $etp WorkflowEtape */
                    foreach ($etp->getEtapes() as $etape) {
                        $etape = $this->entityManager->find(TblWorkflow::class, $etape->getId());
                        $this->getEntityManager()->refresh($etape);
                    }
                }