From 9dcbb3499adad619d70c27a296f3ab8663fd6b9b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 29 May 2006 15:58:29 +0000 Subject: [PATCH] =?UTF-8?q?D=E9but=20ajout=20bon=20de=20livraison?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/livraison/fiche.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/htdocs/livraison/fiche.php b/htdocs/livraison/fiche.php index 3278cac2f57..ae46eb18f4c 100644 --- a/htdocs/livraison/fiche.php +++ b/htdocs/livraison/fiche.php @@ -514,15 +514,14 @@ else //$filename=sanitize_string($expedition->id); //$filedir=$conf->expedition->dir_output . "/" .get_exdir($expedition->id); - $filename=sanitize_string($livraison->ref); - $filedir=$conf->livraison->dir_output . "/" .$livraison->ref; - + $filename=sanitize_string($livraison->ref); + $filedir=$conf->livraison->dir_output . '/' . $filename; $urlsource=$_SERVER["PHP_SELF"]."?id=".$livraison->id; - //$genallowed=$user->rights->expedition->creer; - //$delallowed=$user->rights->expedition->supprimer; - $genallowed=1; - $delallowed=0; + $genallowed=$user->rights->expedition->livraison->creer; + $delallowed=$user->rights->expedition->livraison->supprimer; + //$genallowed=1; + //$delallowed=0; $result=$html->show_documents('livraison',$filename,$filedir,$urlsource,$genallowed,$delallowed,$livraison->modelpdf);