diff --git a/app/Http/Controllers/CategoriesController.php b/app/Http/Controllers/CategoriesController.php index c59bf8d13f..4caa3106bf 100755 --- a/app/Http/Controllers/CategoriesController.php +++ b/app/Http/Controllers/CategoriesController.php @@ -354,11 +354,20 @@ class CategoriesController extends Controller foreach ($category_assets as $asset) { + if ($category->category_type=='asset') { + $category_type = 'hardware'; + } else { + $category_type = $category->category_type; + } + $actions = ''; $inout=''; if ($asset->deleted_at=='') { - $actions = '
'; + $actions = ''; } elseif ($asset->deleted_at!='') { $actions = ''; }