Commit 4a87e29e authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Merge branch 'release-1.4.9' into zf3 + Création d'un service pour les actualités.

parents 2e4bb05c c6976a4c
Loading
Loading
Loading
Loading
+8 −0
Changes for CHANGELOG.md: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
Journal des modifications
=========================

1.4.9 (08/09/2020)
------------------

- Changement de catégorie pour les privilèges associés aux pages d'information
- Ajout d'une configuration pour le fil d'actualité.
- Ajout du champ IdREF pour toutes les structures et modification de l'affichage/saisie des informations.
- Changement de l'affichage des structures fermées dans le filtre des thèses

1.4.8 (01/09/2020)
------------------

+31 −0
Changes for doc/release-notes/v1.4.9.md: 31 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Version 1.4.9

## 1. Sur le serveur d'application
  
- Placez-vous dans le répertoire de l'application puis lancez la commande suivante 
pour installer la nouvelle version :

```bash
git fetch --tags && git checkout --force 1.4.9 && \
bash ./install.sh
```

- Selon le moteur PHP que vous avez installé, rechargez le service, exemple :
  - php7.0-fpm         : `service php7.0-fpm reload`
  - apache2-mod-php7.0 : `service apache2 reload`

## 2. Dans la base de données

- Création d'une catégorie pour les pages d'information.
- Changement du privilège associé à la modification des pages d'information
 
```SQL
INSERT INTO SYGAL_DEV.CATEGORIE_PRIVILEGE (ID, CODE, LIBELLE, ORDRE) VALUES (7, 'page-information', 'Pages d''information', 15);
UPDATE PRIVILEGE SET CATEGORIE_ID=7 WHERE ID=10;
``` 

- Ajout de la colonne *ID_REF* dans la table *STRUCTURE*

```SQL
ALTER TABLE STRUCTURE ADD "ID_REF" VARCHAR2(1024);
```  
 No newline at end of file
+14 −0
Changes for module/Application/config/others/actualite.config.php: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace Application;

use Application\Service\Actualite\ActualiteService;
use Application\Service\Actualite\ActualiteServiceFactory;

return [
    'service_manager' => [
        'factories' => [
            ActualiteService::class => ActualiteServiceFactory::class,
        ],
    ],
];
+5 −0
Changes for module/Application/src/Application/Controller/Factory/IndexControllerFactory.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
namespace Application\Controller\Factory;

use Application\Controller\IndexController;
use Application\Service\Actualite\ActualiteService;
use Application\Service\Etablissement\EtablissementService;
use Application\Service\These\TheseService;
use Application\Service\Variable\VariableService;
@@ -43,6 +44,10 @@ class IndexControllerFactory
        $authenticationService = $container->get('Zend\\Authentication\\AuthenticationService');
        $controller->setAuthenticationService($authenticationService);

        /** @var ActualiteService $actualiteService */
        $actualiteService = $container->get(ActualiteService::class);
        $controller->setActualiteService($actualiteService);
        
        return $controller;
    }
}
+3 −0
Changes for module/Application/src/Application/Controller/IndexController.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
namespace Application\Controller;

use Application\Entity\Db\Variable;
use Application\Service\Actualite\ActualiteServiceAwareTrait;
use Application\Service\Etablissement\EtablissementServiceAwareTrait;
use Application\Service\These\TheseServiceAwareTrait;
use Application\Service\Variable\VariableServiceAwareTrait;
@@ -17,6 +18,7 @@ class IndexController extends AbstractController
    use VariableServiceAwareTrait;
    use EtablissementServiceAwareTrait;
    use TheseServiceAwareTrait;
    use ActualiteServiceAwareTrait;

    /**
     * @var AuthenticationServiceInterface
@@ -67,6 +69,7 @@ class IndexController extends AbstractController
        $vm = new ViewModel([
            'role' => $this->userContextService->getSelectedIdentityRole(),
            'estDoctorant' => (bool) $this->userContextService->getIdentityDoctorant(),
            'url' => $this->actualiteService->isActif() ? $this->actualiteService->getUrl() : null,
        ]);

        if ($response instanceof ViewModel) {
Loading