Merge pull request #12942 from snipe/bug/sc-23197

Added missing case for licenses for item_count
This commit is contained in:
snipe 2023-04-27 16:28:12 -07:00 committed by GitHub
commit 956bc41e48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,9 @@ class CategoriesTransformer
case 'component':
$category->item_count = $category->components_count;
break;
case 'license':
$category->item_count = $category->licenses_count;
break;
default:
$category->item_count = 0;
}