mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-04 23:45:25 +00:00
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:
@ -67,7 +67,7 @@ class Helper
|
||||
{
|
||||
$colors = [
|
||||
"#008941",
|
||||
"#FF4A46",
|
||||
"#FF851B",
|
||||
"#006FA6",
|
||||
"#A30059",
|
||||
"#1CE6FF",
|
||||
|
||||
@ -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