diff --git a/code/web/services/ILS/UsageGraphs.php b/code/web/services/ILS/UsageGraphs.php index 273e26e091..76964117ab 100644 --- a/code/web/services/ILS/UsageGraphs.php +++ b/code/web/services/ILS/UsageGraphs.php @@ -75,6 +75,7 @@ function launch() { $userILSUsage->selectAdd('year'); $userILSUsage->selectAdd('month'); $userILSUsage->orderBy('year, month'); + if ($stat == 'userLogins') { $dataSeries['User Logins'] = [ 'borderColor' => 'rgba(255, 99, 132, 1)', @@ -166,6 +167,7 @@ function launch() { $stat == 'totalHolds' ) { $recordILSUsage = new ILSRecordUsage(); + $recordILSUsage->groupBy('year, month'); if (!empty($instanceName)) { $recordILSUsage->instance = $instanceName; }