mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Make category counters ints
This commit is contained in:
parent
f84ab2beda
commit
d89ef43834
|
@ -30,11 +30,11 @@ class CategoriesTransformer
|
||||||
'eula' => ($category->getEula()) ? true : false,
|
'eula' => ($category->getEula()) ? true : false,
|
||||||
'checkin_email' => ($category->checkin_email =='1') ? true : false,
|
'checkin_email' => ($category->checkin_email =='1') ? true : false,
|
||||||
'require_acceptance' => ($category->require_acceptance =='1') ? true : false,
|
'require_acceptance' => ($category->require_acceptance =='1') ? true : false,
|
||||||
'assets_count' => $category->assets_count,
|
'assets_count' => (int) $category->assets_count,
|
||||||
'accessories_count' => $category->accessories_count,
|
'accessories_count' => (int) $category->accessories_count,
|
||||||
'consumables_count' => $category->consumables_count,
|
'consumables_count' => (int) $category->consumables_count,
|
||||||
'components_count' => $category->components_count,
|
'components_count' => (int) $category->components_count,
|
||||||
'licenses_count' => $category->licenses_count,
|
'licenses_count' => (int) $category->licenses_count,
|
||||||
'created_at' => Helper::getFormattedDateObject($category->created_at, 'datetime'),
|
'created_at' => Helper::getFormattedDateObject($category->created_at, 'datetime'),
|
||||||
'updated_at' => Helper::getFormattedDateObject($category->updated_at, 'datetime'),
|
'updated_at' => Helper::getFormattedDateObject($category->updated_at, 'datetime'),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue