This commit is contained in:
Laurent Destailleur 2016-02-21 20:00:40 +01:00
parent 7def330f54
commit c1d7f5a7ed

View File

@ -193,6 +193,8 @@ if (! empty($id) || ! empty($ref) || GETPOST('id') == 'all')
//print '<table width="100%">'; //print '<table width="100%">';
// Generation des graphs // Generation des graphs
if ($object->id > 0) // We are on statistics for a dedicated product
{
$dir = (! empty($conf->product->multidir_temp[$object->entity])?$conf->product->multidir_temp[$object->entity]:$conf->service->multidir_temp[$object->entity]); $dir = (! empty($conf->product->multidir_temp[$object->entity])?$conf->product->multidir_temp[$object->entity]:$conf->service->multidir_temp[$object->entity]);
if (! file_exists($dir.'/'.$object->id)) if (! file_exists($dir.'/'.$object->id))
{ {
@ -202,6 +204,7 @@ if (! empty($id) || ! empty($ref) || GETPOST('id') == 'all')
$error++; $error++;
} }
} }
}
$graphfiles=array( $graphfiles=array(
'propal' =>array('modulepart'=>'productstats_proposals', 'propal' =>array('modulepart'=>'productstats_proposals',