Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(api) return curve metric name (#8055)
Browse files Browse the repository at this point in the history
  • Loading branch information
loiclau committed Nov 5, 2019
1 parent e3acbe2 commit 9dbb6e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/class/centreonGraphService.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function getData($rows = 200)
"warn" => null
);
$info['legend'] = str_replace('\\\\', '\\', $metric['metric_legend']);
$info['metric_name'] = !empty($metric['ds_name']) ? $metric['ds_name'] : $info['legend'];

/* Add legend getting data */
foreach ($legendDataInfo as $name => $key) {
Expand Down

0 comments on commit 9dbb6e7

Please sign in to comment.