Commit 3d21e770 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Correction du bug d'affichage des versions /!\ semble bloqué

parent ff1172d8
Loading
Loading
Loading
Loading
+4 −1
Changes for module/Application/src/Application/Controller/TheseController.php: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -286,13 +286,16 @@ class TheseController extends AbstractController implements
        $codeVersion = $versionCorrigee ?
            VersionFichier::CODE_ORIG_CORR :
            VersionFichier::CODE_ORIG;
        $codeVersionDiff = $versionCorrigee ?
            VersionFichier::CODE_DIFF_CORR :
            VersionFichier::CODE_DIFF;

        $view = new ViewModel([
            'these'            => $these,
            'theseUrl'         => $this->urlThese()->depotFichiers($these, NatureFichier::CODE_THESE_PDF, $codeVersion),
            'annexesUrl'       => $this->urlThese()->depotFichiers($these, NatureFichier::CODE_FICHIER_NON_PDF, $codeVersion),
            'attestationUrl'   => $this->urlThese()->attestationThese($these, $codeVersion),
            'diffusionUrl'     => $this->urlThese()->diffusionThese($these, $codeVersion),
            'diffusionUrl'     => $this->urlThese()->diffusionThese($these, $codeVersionDiff),
            'nextStepUrl'      => $this->urlWorkflow()->nextStepBox($these, null, [
                WfEtape::CODE_DEPOT_VERSION_ORIGINALE,
                WfEtape::CODE_DEPOT_VERSION_ORIGINALE_CORRIGEE,
+1 −1
Changes for module/Application/src/Application/Service/Url/UrlTheseService.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ class UrlTheseService extends UrlService

    public function diffusionThese(These $these, $version)
    {
        if (!in_array($version, [VersionFichier::CODE_ORIG, VersionFichier::CODE_ORIG_CORR])) {
        if (!in_array($version, [VersionFichier::CODE_DIFF, VersionFichier::CODE_DIFF_CORR])) {
            throw new LogicException("Version fichier spécifiée inattendue: " . $version);
        }