diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 5e71fca221d..6c378c4ff6e 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1845,7 +1845,7 @@ class Form { include_once(DOL_DOCUMENT_ROOT.'/includes/modules/commande/modules_commande.php'); $model=new ModelePDFCommandes(); - $modellist=$model->liste_modeles(); + $modellist=$model->liste_modeles($this->db); } } elseif ($modulepart == 'facture') @@ -1956,4 +1956,4 @@ class Form } -?> +?>