Skip to content

Commit

Permalink
Ensure to only show enabled reports in Goals By View (#15506)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored Feb 3, 2020
1 parent 082f070 commit 8791d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Goals/Goals.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private static function getAllReportsWithGoalMetrics()
$reports = new ReportsProvider();

foreach ($reports->getAllReports() as $report) {
if ($report->hasGoalMetrics()) {
if ($report->hasGoalMetrics() && $report->isEnabled()) {
$reportsWithGoals[] = array(
'category' => $report->getCategoryId(),
'name' => $report->getName(),
Expand Down

0 comments on commit 8791d95

Please sign in to comment.