From 28b1249ff0c8d640b801771e02bac4ca73dcda65 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Dec 2011 17:33:57 +0100 Subject: [PATCH] Fix: [ bug #248 ] Send by mail doesn't find the files in provider's invoices --- htdocs/fourn/facture/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 6341cf1b1b6..5eee76d15ae 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -664,7 +664,7 @@ if ($_POST['action'] == 'send' && ! $_POST['addfile'] && ! $_POST['removedfile'] if ($result > 0) { $ref = dol_sanitizeFileName($facturefourn->ref); - $file = $conf->fournisseur->facture->dir_output . '/' . $ref . '/' . $ref . '.pdf'; + $file = $conf->fournisseur->facture->dir_output.'/'.get_exdir($facturefourn->id,2).$ref.'/'.$ref.'.pdf'; if (is_readable($file)) { @@ -1879,7 +1879,7 @@ else if ($_GET['action'] == 'presend') { $ref = dol_sanitizeFileName($fac->ref); - $file = $conf->fournisseur->facture->dir_output.'/'.get_exdir($fac->id,2).$ref.'.pdf'; + $file = $conf->fournisseur->facture->dir_output.'/'.get_exdir($fac->id,2).$ref.'/'.$ref.'.pdf'; print '
'; print_titre($langs->trans('SendBillByMail'));