mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Added missing case for licenses for item_count
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e25dc42121
commit
567e19bcc0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue