From dbc93de6b3966470f83254547f8029c60f489490 Mon Sep 17 00:00:00 2001
From: snipe
Date: Tue, 10 Feb 2015 17:11:40 -0800
Subject: [PATCH] Fixes checkin button on view
---
app/views/backend/hardware/view.blade.php | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/app/views/backend/hardware/view.blade.php b/app/views/backend/hardware/view.blade.php
index ba6f027e9300..b7f44721c9a8 100755
--- a/app/views/backend/hardware/view.blade.php
+++ b/app/views/backend/hardware/view.blade.php
@@ -252,7 +252,7 @@
@endif
- @if ((isset($asset->assigned_to ) && ($asset->assigned_to > 0)))
+ @if ((isset($asset->assigneduser) && ($asset->assigned_to > 0)))
@lang('admin/hardware/form.checkedout_to')
@@ -285,13 +285,24 @@
@endif
- @if (($asset->status_id ) && ($asset->status_id > 1))
+ @if (($asset->status_id ) && ($asset->status_id > 0))
@if ($asset->assetstatus)
{{{ $asset->assetstatus->name }}}
@lang('admin/hardware/general.asset')
+
+
@if ($asset->assetstatus->notes)