From 95b6e0d2d86661530f4515211547274390d8825d Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 28 Oct 2017 08:40:27 -0700 Subject: [PATCH] Fixed assetloc to location --- resources/views/hardware/edit.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php index 83cf3bd6ae..aea6192893 100755 --- a/resources/views/hardware/edit.blade.php +++ b/resources/views/hardware/edit.blade.php @@ -61,8 +61,8 @@ @include ('partials.forms.edit.order_number') id && $item->assetloc) { - $currency_type = $item->assetloc->currency; + if ($item->id && $item->location) { + $currency_type = $item->location->currency; } ?> @include ('partials.forms.edit.purchase_cost', ['currency_type' => $currency_type])