Commit 2870be38 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Meilleure prise en compte de la notion d'historique au nivau des fonctions référentielles

parent 850f3456
Loading
Loading
Loading
Loading
+9 −1
Changes for CHANGELOG.md: 9 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ Objectif : Doubles statuts et refonte des données personnelles

* La suppression d'intervenants est maintenant pleinement opérationnelle et les erreurs sont mieux affichées
* Formule de Poitiers modifiée
* Le report des services de l'année précédentepar un gestionnaire est désormais limité à sa composante.

## Notes de mise à jour

@@ -55,6 +54,15 @@ Une nouvelle documentation sur les connecteurs est disponible ici : [Import de d
* Attention : un bug est connu et en cours de résolution : il se produit lorsqu'en tant qu'intervenant vous saisissez vos données personnelles. Une page d'erreur s'affiche au moment ou vous sélectionnez votre statut. Une mise à jour de la page suffit pour pouvoir continuer la saisie du formulaire.



# OSE 14.17 (en cours de développement)

## Corrections de bugs

* Le report des services de l'année précédentepar un gestionnaire est désormais limité à sa composante.



# OSE 14.16

## Nouveautés
+3 −4
Changes for module/Application/src/Application/Controller/FonctionReferentielController.php: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -15,10 +15,6 @@ class FonctionReferentielController extends AbstractController

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

        $fonctionsReferentiels = $this->getServiceFonctionReferentiel()->getList();

        return compact('fonctionsReferentiels');
@@ -52,6 +48,8 @@ class FonctionReferentielController extends AbstractController
        return compact('form', 'title');
    }



    public function deleteAction()
    {
        $fonctionReferentiel = $this->getEvent()->getParam('fonctionReferentiel');
@@ -62,6 +60,7 @@ class FonctionReferentielController extends AbstractController
        } catch (\Exception $e) {
            $this->flashMessenger()->addErrorMessage($this->translate($e));
        }

        return new MessengerViewModel(compact('fonctionReferentiel'));
    }
}
 No newline at end of file
+0 −2
Changes for module/Application/src/Application/Controller/ServiceReferentielController.php: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ class ServiceReferentielController extends AbstractController
    use PlafondProcessusAwareTrait;



    protected function initFilters()
    {
        $this->em()->getFilters()->enable('historique')->init([
@@ -104,7 +103,6 @@ class ServiceReferentielController extends AbstractController
        $this->initFilters();
        $this->em()->getFilters()->enable('historique')->init([
            \Application\Entity\Db\Structure::class,
            \Application\Entity\Db\FonctionReferentiel::class,
        ]);
        $id                = (int)$this->params()->fromRoute('id');
        $typeVolumeHoraire = $this->params()->fromQuery('type-volume-horaire', $this->params()->fromPost('type-volume-horaire'));
+4 −3
Changes for module/Application/src/Application/Form/FonctionReferentiel/FonctionReferentielSaisieForm.php: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@ class FonctionReferentielSaisieForm extends AbstractForm
    use ContextServiceAwareTrait;



    public function init()
    {
        $hydrator = new FonctionReferentielHydrator();
@@ -145,8 +144,11 @@ class FonctionReferentielSaisieForm extends AbstractForm
    protected function getFonctionsReferentiellesParentes()
    {
        $qb = $this->getServiceFonctionReferentiel()->finderByProperty('parent', null);
        $qb = $this->getServiceFonctionReferentiel()->finderByHistorique($qb);

        $frs = $this->getServiceFonctionReferentiel()->getList($qb);

        return $this->getServiceFonctionReferentiel()->getList($qb);
        return $frs;
    }


@@ -213,7 +215,6 @@ class FonctionReferentielHydrator implements HydratorInterface
    use StructureServiceAwareTrait;



    /**
     * Hydrate $object with the provided $data.
     *
+1 −2
Changes for module/Application/src/Application/Form/ServiceReferentiel/SaisieFieldset.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ class SaisieFieldset extends AbstractFieldset implements EntityManagerAwareInter

    public function getFonctions()
    {
        $fncs      = $this->getServiceFonctionReferentiel()->getList();
        $fncs      = $this->getServiceFonctionReferentiel()->getList($this->getServiceFonctionReferentiel()->finderByHistorique());
        $fonctions = [];
        foreach ($fncs as $id => $fonction) {
            if ($fonction->getFille()->count() > 0) {
@@ -340,7 +340,6 @@ class SaisieFieldsetHydrator implements HydratorInterface
    use EntityManagerAwaretrait;



    /**
     * Hydrate $object with the provided $data.
     *
Loading