Commit ddc797fb authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Création/modif d'établissement d'inscription, d'ED/UR : obligation de fournir...

Création/modif d'établissement d'inscription, d'ED/UR : obligation de fournir un logo ; harmonisation des formulaires de création/modif d'ED/UR.
parent ca4c0a67
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ Journal des modifications
- Module Formation : Ajout sur l'index des sessions, d'un tri sur les séances
- Module Soutenances : Affichage de l'historique des actions effectuées (horodatages) en dessous de chacune d'elles 
- Amélioration de la page consacrée aux profils (filtrage, explications, esthétique) et harmonisation de la page Rôles et privilèges.
- Création/modif d'établissement d'inscription, d'ED/UR : obligation de fournir un logo ; harmonisation des formulaires de création/modif d'ED/UR.
- [FIX] Notifications de demande d'engagement d'impartialité et d'avis de soutenance : utilisation en priorité du mail de l'acteur.
- [FIX] Impossible d'accèder aux pages de consultation/modification d'ED ou d'UR.
- [FIX] Coquille dans le procès verbal de soutenance (PDF).
+1 −1
Changes for module/Fichier/src/Fichier/Command/ConvertShellCommand.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class ConvertShellCommand extends ShellCommand
     */
    public function generateCommandLine()
    {
        $command = $this->executable . sprintf(" '%s' '%s'", $this->inputFilePath, $this->outputFilePath);
        $command = $this->executable . sprintf(" '%s' '%s' 2>&1", $this->inputFilePath, $this->outputFilePath);

        $this->commandLine = $command;
    }
+6 −8
Changes for module/Fichier/src/Fichier/FileUtils.php: 6 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -130,7 +130,6 @@ class FileUtils

        $runner = new ShellCommandRunner();
        $runner->setCommand($command);
        try {
        $result = $runner->runCommand();

        if (!$result->isSuccessfull()) {
@@ -139,15 +138,14 @@ class FileUtils
                $result->getReturnCode()
            );
            if ($output = $result->getOutput()) {
                    $message .= "Voici le log d'exécution : " . implode(PHP_EOL, $output);
                }
                throw new RuntimeException($message);
                $message .= "Voici la sortie de la commande : " . implode(PHP_EOL, $output);
            } else {
                $message .= "(La commande n'a produit aucune sortie)";
            }
        } catch (RuntimeException $rte) {
            throw new RuntimeException(
                "Une erreur est survenue lors de l'exécution de la commande " . $command->getName(),
                0,
                $rte);
                "Une erreur est survenue lors de l'exécution de la commande '" . $command->getName() . "' : " .
                $message
            );
        }

        return $logoFilepath;
+2 −1
Changes for module/Fichier/src/Fichier/Service/Fichier/FichierStorageService.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -318,7 +318,8 @@ class FichierStorageService
     * Supprime le fichier physique du logo existant d'une structure.
     *
     * @param \Structure\Entity\Db\StructureInterface $structure
     * @throws \Fichier\Service\Storage\Adapter\Exception\StorageAdapterException
     * @throws \Fichier\Service\Storage\Adapter\Exception\FileNotFoundInStorageException Fichier introuvable
     * @throws \Fichier\Service\Storage\Adapter\Exception\StorageAdapterException Autre erreur
     */
    public function deleteFileForLogoStructure(StructureInterface $structure): void
    {
+8 −0
Changes for module/Fichier/src/Fichier/Service/Storage/Adapter/Exception/FileNotFoundInStorageException.php: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace Fichier\Service\Storage\Adapter\Exception;

class FileNotFoundInStorageException extends StorageAdapterException
{

}
 No newline at end of file
Loading