Skip to content

Commit

Permalink
Template: Fix multi template graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 authored and nilmerg committed Jan 16, 2025
1 parent 8b6ea11 commit 48151b3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions library/Graphite/Graphing/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,13 @@ protected function combineMetrics(

$allowedNextCurveMetricsPerCurrentCurveName = [];
foreach ($currentCombination as $currentCurveName => $currentCurveMetric) {
$allowedNextCurveMetricsPerCurrentCurveName[$currentCurveName]
= $possibleCombinations[$currentCurveName][$nextCurveName][$currentCurveMetric];
if (isset($possibleCombinations[$currentCurveName][$nextCurveName][$currentCurveMetric])) {
$allowedNextCurveMetricsPerCurrentCurveName[$currentCurveName]
= $possibleCombinations[$currentCurveName][$nextCurveName][$currentCurveMetric];
} else {
$metricsCombinations[] = $currentCombination;
return;
}
}

$allowedNextCurveMetrics = $allowedNextCurveMetricsPerCurrentCurveName[$currentCurveName];
Expand Down

0 comments on commit 48151b3

Please sign in to comment.