mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-05-28 04:34:57 -04:00
Template: Fix multi template graphs
This commit is contained in:
parent
8b6ea11fc0
commit
48151b3f0e
1 changed files with 7 additions and 2 deletions
|
|
@ -207,8 +207,13 @@ class Template
|
|||
|
||||
$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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue