Commit 323b17d5 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Merge branch 'PdC_recupInfos'

parents 87ff0462 88c3eacb
Loading
Loading
Loading
Loading
+66 −65

File changed.

Preview size limit exceeded, changes collapsed.

+186 −175

File changed.

Preview size limit exceeded, changes collapsed.

+16
Changes for module/Application/src/Application/Assertion/These/TheseEntityAssertion.php: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -253,4 +253,20 @@ class TheseEntityAssertion extends GeneratedTheseEntityAssertion

        return $this->identityDoctorant;
    }

    /**
     * @return bool
     */
    protected function isPageDeCouvertureGenerable()
    {
        $informations = $this->fichierService->fetchInformationsPageDeCouverture($this->these);

        $problemes = [];
        foreach ($informations as $clef => $information) {
            if ($information == "") {
                return false;
            }
        }
        return true;
    }
}
 No newline at end of file
+5 −1
Changes for module/Application/src/Application/Controller/TheseController.php: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -262,6 +262,8 @@ class TheseController extends AbstractController
            $these
        ));

        $informations = $this->fichierService->fetchInformationsPageDeCouverture($these);

        $view = new ViewModel([
            'these'            => $these,
            'validation'       => $validation ?: null,
@@ -269,6 +271,8 @@ class TheseController extends AbstractController
            'validerUrl'       => $this->urlThese()->validerPageDeCouvertureUrl($these),
            'devaliderUrl'     => $this->urlThese()->devaliderPageDeCouvertureUrl($these),
            'nextStepUrl'      => $this->urlWorkflow()->nextStepBox($these, null, [WfEtape::CODE_VALIDATION_PAGE_DE_COUVERTURE]),
            'informations'     => $informations,
            'msgCollector'     => $this->getServiceMessageCollector(),
        ]);

        return $view;
@@ -1476,7 +1480,7 @@ class TheseController extends AbstractController

        // GENERATION DE LA COUVERTURE
        $filename = "COUVERTURE_".$these->getId()."_".uniqid().".pdf";
        $this->generatePageDeCouverture($these,$filename);
        $this->fichierService->generatePageDeCouverture($these,$filename);
        $couvertureChemin = "/tmp/". $filename;

        // RECUPERATION DE LA BONNE VERSION DU MANUSCRIPT
+3
Changes for module/Application/src/Application/Controller/UniteRechercheController.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -72,6 +72,8 @@ class UniteRechercheController extends AbstractController
        }
        $rattachements = null;
        if ($selectedStructure !== null) $rattachements = $this->uniteRechercheService->findEtablissementRattachement($selectedStructure);
        $domaines = null;
        if ($selectedStructure !== null) $domaines = $selectedStructure->getDomaines();

        return new ViewModel([
            'structuresPrincipales'          => $structures,
@@ -79,6 +81,7 @@ class UniteRechercheController extends AbstractController
            'roles'                          => $roles,
            'effectifs'                      => $effectifs,
            'rattachements'                  => $rattachements,
            'domaines'                       => $domaines,
        ]);
    }

Loading