From f546247f63c4179149cd980381af423528e92644 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 27 Jun 2006 11:44:16 +0000 Subject: [PATCH] bugfix --- htdocs/compta/facture.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index c50df1c51ec..7fa0705c223 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -690,7 +690,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post { $facture = new Facture($db, 0, $_GET['facid']); $facture->fetch($_GET['facid']); - if ($_REQUEST['model']) $facture->set_pdf_model($user, $_REQUEST['model']); + if ($_REQUEST['modelpdf']) $facture->set_pdf_model($user, $_REQUEST['modelpdf']); if ($_REQUEST['lang_id']) { $outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs"); @@ -2326,7 +2326,7 @@ else $outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs"); $outputlangs->setDefaultLang($_REQUEST['lang_id']); } - $result=facture_pdf_create($db, $fac->id, '', $_REQUEST['model'], $outputlangs); + $result=facture_pdf_create($db, $fac->id, '', $_REQUEST['modelpdf'], $outputlangs); if ($result <= 0) { dolibarr_print_error($db,$result); @@ -2381,7 +2381,7 @@ else $outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs"); $outputlangs->setDefaultLang($_REQUEST['lang_id']); } - $result=facture_pdf_create($db, $fac->id, '', $_REQUEST['model'], $outputlangs); + $result=facture_pdf_create($db, $fac->id, '', $_REQUEST['modelpdf'], $outputlangs); if ($result <= 0) { dolibarr_print_error($db,$result);