Commit f85033de authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Léger refactoring

parent 701efef0
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment