diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index d81413b055f..35ad1719a82 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -38,6 +38,7 @@ llxHeader(); $mesg = ''; + /* * * @@ -54,6 +55,8 @@ if ($_GET["id"]) if (! file_exists($dir)) { umask(0); + mkdir(DOL_DOCUMENT_ROOT."/document"); + mkdir(DOL_DOCUMENT_ROOT."/document/produit"); if (! mkdir($dir, 0755)) { $mesg = "Impossible de créer $dir !"; @@ -107,7 +110,7 @@ if ($_GET["id"]) print '
| '.$langs->trans("Ref").' | '.$product->ref.' | '; print ''.$langs->trans("Statistics").' |
| Libellé | $product->libelle | "; + print "|
| ".$langs->trans("Label")." | $product->libelle | "; print '';
print 'Propositions commerciales : '.$product->count_propale($socid);
print " Proposé à ".$product->count_propale_client($socid)." clients"; @@ -189,7 +192,7 @@ if ($_GET["id"]) } else { - print "Error"; + dolibarr_print_error(); } $db->close(); |