mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
More comments
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
151719a91c
commit
8f3a237ea0
|
@ -23,6 +23,8 @@ class CategoriesTransformer
|
|||
public function transformCategory(Category $category = null)
|
||||
{
|
||||
|
||||
// We only ever use item_count for categories in this transformer, so it makes sense to keep it
|
||||
// simple and do this switch here.
|
||||
switch ($category->category_type) {
|
||||
case 'asset':
|
||||
$category->item_count = $category->assets_count;
|
||||
|
|
Loading…
Reference in a new issue