From 062cbeb18fffaf268be2001425005c3962af1b5d Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 12 May 2016 10:39:19 -0700 Subject: [PATCH] Fixed bug in categories asset listing for hardware --- app/Http/Controllers/CategoriesController.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 = '
'; + $actions .= ' '; + $actions .= ' '; + $actions .= '
'; } elseif ($asset->deleted_at!='') { $actions = ''; }