From 45736660aa66726ee5da57a795edb508e7d0469e Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 24 Mar 2026 14:59:58 +0000 Subject: [PATCH] df --- Controleur/ControleurGedadherent.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/Controleur/ControleurGedadherent.php b/Controleur/ControleurGedadherent.php index d972d37..714a142 100644 --- a/Controleur/ControleurGedadherent.php +++ b/Controleur/ControleurGedadherent.php @@ -23,17 +23,7 @@ class ControleurGedadherent extends Controleur { $nouveau_fichier = "rien"; - $codeNaturePiece = $this->requete->getParametreFormulaire("codeNaturePiece"); - - if($codeNaturePiece == "AUT"){ - $libelleDocument = $this->requete->getParametreFormulaire("libelleAutre"); - }else{ - $libelleDocument = $this->ged->getLibelleTypeDocument($codeNaturePiece); - } - - var_dump(array($codeNaturePiece, $libelleDocument)); - die(); - + if(!empty($_POST)) { define('TARGET', $_SESSION['cheminGed']); // Repertoire cible @@ -48,7 +38,16 @@ class ControleurGedadherent extends Controleur { // Variables $extension = ''; - + $codeNaturePiece = $this->requete->getParametreFormulaire("codeNaturePiece"); + + if($codeNaturePiece == "AUT"){ + $libelleDocument = $this->requete->getParametreFormulaire("libelleAutre"); + }else{ + $libelleDocument = $this->ged->getLibelleTypeDocument($codeNaturePiece); + } + + var_dump(array($codeNaturePiece, $libelleDocument)); + die(); if( !is_dir(TARGET) ) {