Fix the count in StatuslabelsController@getAssetsCountByStatuslabel() function that allows it to pass the correct index
Also edit the default color for assets with the Pending label, so it match the color in the docs
This commit is contained in:
@@ -182,6 +182,7 @@ class StatuslabelsController extends Controller
|
||||
|
||||
if ($statuslabel->color!='') {
|
||||
$colors_array[] = $statuslabel->color;
|
||||
$default_color_count++;
|
||||
} else {
|
||||
$colors_array[] = Helper::defaultChartColors($default_color_count);
|
||||
$default_color_count++;
|
||||
|
||||
Reference in New Issue
Block a user