From fd74e4308b1324bfc7bbece9e7c3570999dd5bfe Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 2 Nov 2017 08:11:04 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20show=20request=20if=20the=20use?= =?UTF-8?q?r=20or=20the=20asset/model=20has=20been=20deleted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/hardware/requested.blade.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/hardware/requested.blade.php b/resources/views/hardware/requested.blade.php index 2b3ccab86f..94a99ac1ef 100644 --- a/resources/views/hardware/requested.blade.php +++ b/resources/views/hardware/requested.blade.php @@ -48,12 +48,14 @@ @foreach ($requestedItems as $request) + + @if ($request->requestable) {{ csrf_field() }} - @if ($request->itemType() == "asset") + @if (($request->itemType() == "asset") && ($request->requestable)) - @else + @elseif (($request->itemType() == "asset_model") && ($request->requestable)) @endif @@ -102,6 +104,7 @@ + @endif @endforeach