A free open source IT asset/license management system
Fix the count in StatuslabelsController@getAssetsCountByStatuslabel() function that allows it to pass the correct index
Ivan Nieto Vivanco4207858a14bd
diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.phpindex cd712c46ee..0cba900920 100644--- a/app/Helpers/Helper.php+++ b/app/Helpers/Helper.php@@ -67,7 +67,7 @@ class Helper{$colors = ["#008941",- "#FF4A46",+ "#FF851B","#006FA6","#A30059","#1CE6FF",diff --git a/app/Http/Controllers/Api/StatuslabelsController.php b/app/Http/Controllers/Api/StatuslabelsController.phpindex 774fb70014..8d4b29a227 100644--- a/app/Http/Controllers/Api/StatuslabelsController.php+++ b/app/Http/Controllers/Api/StatuslabelsController.php@@ -182,6 +182,7 @@ class StatuslabelsController extends Controllerif ($statuslabel->color!='') {$colors_array[] = $statuslabel->color;+ $default_color_count++;} else {$colors_array[] = Helper::defaultChartColors($default_color_count);$default_color_count++;