Merge pull request #23145 from FliyFly/scrutinizermonthreception
fix(scrutinizer)
This commit is contained in:
commit
71da74121d
@ -29,6 +29,8 @@ require_once DOL_DOCUMENT_ROOT.'/reception/class/receptionstats.class.php';
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
||||||
|
|
||||||
$year = GETPOST("year", 'int');
|
$year = GETPOST("year", 'int');
|
||||||
|
$socid = GETPOST("socid", 'int');
|
||||||
|
$userid = GETPOST("userid", 'int');
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if ($user->socid) {
|
if ($user->socid) {
|
||||||
@ -49,9 +51,8 @@ $HEIGHT = DolGraph::getDefaultGraphSizeForStats('height');
|
|||||||
$mesg = '';
|
$mesg = '';
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("StatisticsOfReceptions").' '.GETPOST("year", 'int'), $mesg);
|
print load_fiche_titre($langs->trans("StatisticsOfReceptions").' '.GETPOST("year", 'int'), $mesg);
|
||||||
|
$stats = new ReceptionStats($db, $socid, '', ($userid > 0 ? $userid : 0));
|
||||||
$stats = new ReceptionStats($db);
|
$data = $stats->getNbByMonth($year);
|
||||||
$data = $stats->getNbReceptionByMonth(GETPOST("year", 'int'));
|
|
||||||
|
|
||||||
dol_mkdir($conf->reception->dir_temp);
|
dol_mkdir($conf->reception->dir_temp);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user