diff --git a/CHANGELOG.md b/CHANGELOG.md index 865fc054..89202c08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELEASED] +### Fixed + +- Technician names missing on stacked bar chart labels + ## [1.10.2] - 2026-09-01 ### Fixed diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..ef1bed5a --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +include ../../PluginsMakefile.mk diff --git a/inc/graph.class.php b/inc/graph.class.php index c03b80d5..9e5c2169 100644 --- a/inc/graph.class.php +++ b/inc/graph.class.php @@ -1908,7 +1908,8 @@ public function initDatasMultiple($datas, $labels2, $unit = '', $stacked = false $out .= 'var labels = ' . json_encode($labels, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP) . ";\n"; - $out .= 'var labels2 = ' . json_encode($labels2, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP) . ";\n"; + // labels2 keys (e.g. technician login) are only used to align datas order ; JS consumes it positionally + $out .= 'var labels2 = ' . json_encode(array_values($labels2), JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP) . ";\n"; echo $out; if (!$stacked) {