mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08: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:
parent
923d2a79ae
commit
4207858a14
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue