Commit c5099d46 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'ak/fix-undefined-value' into 'master'

Fix uninitialized constant SystemDashboardService in custom dashboards

See merge request gitlab-org/gitlab!19453
parents 1e813889 5b5d99dd
......@@ -40,7 +40,7 @@ module Metrics
# All custom metrics are displayed on the system dashboard.
# Nil is acceptable as we'll default to the system dashboard.
def valid_dashboard?(dashboard)
dashboard.nil? || SystemDashboardService.system_dashboard?(dashboard)
dashboard.nil? || ::Metrics::Dashboard::SystemDashboardService.system_dashboard?(dashboard)
end
end
......
---
title: Fix uninitialized constant SystemDashboardService
merge_request: 19453
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment