Skip to content
Snippets Groups Projects
Commit f85033de authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Léger refactoring

parent 701efef0
No related branches found
No related tags found
No related merge requests found
......@@ -352,7 +352,7 @@ class IntervenantController extends AbstractController
try {
if ($data) $data = $this->getProcessusIntervenant()->suppression()->deleteRecursive($data, $ids);
if ($intervenant) {
$this->getServiceWorkflow()->calculerTableauxBord(null, $intervenant);
$this->getServiceWorkflow()->calculerTableauxBord([], $intervenant);
}
if (!$data) {
$this->flashMessenger()->addSuccessMessage('Fiche intervenant supprimée intégralement. Vous allez être redirigé(e) vers la page de recherche des intervenants.');
......
......@@ -7,7 +7,6 @@ use Application\Entity\Db\Structure;
use Application\Entity\Db\Periode;
use Application\Entity\Db\Annee;
use Application\Entity\Db\TypeIntervenant;
use Application\Filter\StringFromFloat;
use Application\Service\Traits\MiseEnPaiementServiceAwareTrait;
use Application\Service\Traits\MiseEnPaiementIntervenantStructureServiceAwareTrait;
use Application\Service\Traits\SourceServiceAwareTrait;
......@@ -130,7 +129,7 @@ class IntervenantService extends AbstractEntityService
$result = $repo->findOneBy($findParams); // on retente
if ($result) {
$this->getServiceWorkflow()->calculerTableauxBord(null, $result);
$this->getServiceWorkflow()->calculerTableauxBord([], $result);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment