Merge pull request #14008 from akemidx/sc20532_change_log_level

Change log level on status label colors above 256
This commit is contained in:
snipe 2023-12-08 09:01:28 +00:00 committed by GitHub
commit e7a9c7ec99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -354,7 +354,7 @@ class Helper
if ($index >= $total_colors) { if ($index >= $total_colors) {
\Log::error('Status label count is '.$index.' and exceeds the allowed count of 266.'); \Log::info('Status label count is '.$index.' and exceeds the allowed count of 266.');
//patch fix for array key overflow (color count starts at 1, array starts at 0) //patch fix for array key overflow (color count starts at 1, array starts at 0)
$index = $index - $total_colors - 1; $index = $index - $total_colors - 1;