diff --git a/CHANGELOG.md b/CHANGELOG.md index 86bf0640e6f426c60b70c0a9742192e96494e975..0abe87f8799b8f1b573b734c318bc0e7d981f144 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,7 @@ Objectif : Connecteur Export OSE => Logiciel RH + import Actul+ ## Correction de bug * Inversion d'affichage Fi et Fa dans administration > type de ressources (#38510) - +* Meilleur rafraichissement de la feuille de route suite à la completion des données personnelles diff --git a/module/Application/src/Application/Controller/IntervenantDossierController.php b/module/Application/src/Application/Controller/IntervenantDossierController.php index cedd2ff532990bf69eb3a5b8837f480195177114..4ea3913ca9212d4d1f19a83d12a692b31be7b66c 100755 --- a/module/Application/src/Application/Controller/IntervenantDossierController.php +++ b/module/Application/src/Application/Controller/IntervenantDossierController.php @@ -319,6 +319,7 @@ class IntervenantDossierController extends AbstractController { $this->getServiceWorkflow()->calculerTableauxBord([ 'dossier', + 'service_saisie', 'piece_jointe_demande', ], $intervenant); } diff --git a/module/Application/src/Application/Service/WorkflowService.php b/module/Application/src/Application/Service/WorkflowService.php index 75b044205341d7d78650b6a5204f8407ed6c335d..581bc457b55b421f7f0d00e73408322fa1a5a2a0 100755 --- a/module/Application/src/Application/Service/WorkflowService.php +++ b/module/Application/src/Application/Service/WorkflowService.php @@ -242,7 +242,7 @@ class WorkflowService extends AbstractService $iid = $intervenant->getId(); $sid = $structure ? $structure->getId() : 0; - if (!isset($this->feuillesDeRoute[$iid][$sid])) { + if (true || !isset($this->feuillesDeRoute[$iid][$sid])) { $wie = $this->getEtapes($intervenant, $structure); $this->feuillesDeRoute[$iid][$sid] = []; @@ -382,6 +382,18 @@ class WorkflowService extends AbstractService } } + /* Mise à jour des entités */ + 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) { + $this->getEntityManager()->refresh($etape); + } + } + } + } + return $errors; }