A free open source IT asset/license management system
Add a condition to 'restart' the color index for the status pie chart
Ivan Nieto Vivancofbb368402242
diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.phpindex df498da8c9..78693b60c4 100644--- a/app/Helpers/Helper.php+++ b/app/Helpers/Helper.php@@ -334,7 +334,11 @@ class Helper'#92896B',];+ $total_colors = count($colors);+ if ($index >= $total_colors) {+ $index = $index - $total_colors;+ }return $colors[$index];}