Commit 5006aab3 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Bugs divers corrigés suite refactoring traits

parent 9be300aa
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/src/Controller/AutresController.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ class AutresController extends AbstractController
    public function saisieAction()
    {
        $dossierAutre = $this->getEvent()->getParam('dossierAutre');
        $form         = $this->getAutresForm();
        $form         = $this->getFormIntervenantAutres();
        $title        = 'Édition champs autre';

        $form->bindRequestSave($dossierAutre, $this->getRequest(), function (DossierAutre $autre) {
+9 −6
Changes for module/Application/src/Controller/CentreCoutController.php: 9 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ class CentreCoutController extends AbstractController
        $centreCout          = $this->getEvent()->getParam('centreCout');
        $centreCoutStructure = $this->getEvent()->getParam('centreCoutStructure');

        $form = $this->getFormCentreCoutStructureSaisie();
        $form = $this->getFormCentreCoutCentreCoutStructureSaisie();
        if (empty($centreCoutStructure)) {
            $title               = 'Création d\'une structure pour le Centre de Coûts';
            $centreCoutStructure = $this->getServiceCentreCoutStructure()->newEntity()
@@ -129,10 +129,12 @@ class CentreCoutController extends AbstractController
        return new MessengerViewModel(compact('centreCoutStructure'));
    }



    public function centreCoutActiviteAction()
    {
        $this->em()->getFilters()->enable('historique')->init([
            CcActivite::class
            CcActivite::class,
        ]);

        $listeActivites = $this->getServiceCcActivite()->getList();
@@ -140,10 +142,12 @@ class CentreCoutController extends AbstractController
        return compact('listeActivites');
    }



    public function centreCoutActiviteSaisieAction()
    {
        $centreCoutActivite = $this->getEvent()->getParam('ccActivite');
        $form = $this->getFormCentreCoutActiviteSaisie();
        $form               = $this->getFormCentreCoutCentreCoutActiviteSaisie();
        if (empty($centreCoutActivite)) {
            $title              = 'Création d\'une nouvelle activité de centre de cout';
            $centreCoutActivite = $this->getServiceCcActivite()->newEntity();
@@ -160,9 +164,10 @@ class CentreCoutController extends AbstractController
        });

        return compact('form', 'title');

    }



    public function centreCoutActiviteDeleteAction()
    {
        $centreCoutActivite = $this->getEvent()->getParam('ccActivite');
@@ -177,6 +182,4 @@ class CentreCoutController extends AbstractController
        return new MessengerViewModel(compact('centreCoutActivite'));
    }



}
+1 −1
Changes for module/Application/src/Controller/GradeController.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ class GradeController extends AbstractController
    {
        $grade = $this->getEvent()->getParam('grade');

        $form = $this->getFormGradeSaisie();
        $form = $this->getFormGradeGradeSaisie();

        if (empty($grade)) {
            $title = "Création d'un nouveau grade";
+1 −2
Changes for module/Application/src/Controller/ModulateurController.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@ class modulateurController extends AbstractController
    use ContextServiceAwareTrait;



    public function indexAction()
    {
        /* @var $modulateurs [] modulateur */
@@ -62,7 +61,7 @@ class modulateurController extends AbstractController

        $modulateur     = $this->getEvent()->getParam('modulateur');
        $typeModulateur = $this->getEvent()->getParam('typeModulateur');
        $form           = $this->getFormModulateurSaisie();
        $form           = $this->getFormModulateurModulateurSaisie();
        if (empty($modulateur)) {
            $title      = 'Création d\'un nouveau Modulateur';
            $modulateur = $this->getServicemodulateur()->newEntity()
+1 −2
Changes for module/Application/src/Controller/MotifModificationServiceController.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ class MotifModificationServiceController extends AbstractController
    use MotifModificationServiceSaisieFormAwareTrait;



    public function indexAction()
    {
        $this->em()->getFilters()->enable('historique')->init([
@@ -33,7 +32,7 @@ class MotifModificationServiceController extends AbstractController

        $motifModificationServiceDu = $this->getEvent()->getParam('motifModificationServiceDu');

        $form = $this->getFormMotifModificationServiceSaisie();
        $form = $this->getFormMotifModificationServiceMotifModificationServiceSaisie();
        if (empty($motifModificationServiceDu)) {
            $title                      = 'Création d\'un nouveau motif de modification de service dû';
            $motifModificationServiceDu = $this->getServiceMotifModificationService()->newEntity();