A free open source IT asset/license management system
Fixed references to assetLoc in hardware view
snipe3d7fd5cf04e9
diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.phpindex 9e40dc1c84..8c1f85f7c6 100755--- a/resources/views/hardware/view.blade.php+++ b/resources/views/hardware/view.blade.php@@ -416,19 +416,19 @@<li><i class="fa fa-phone"></i> {{ $asset->assignedTo->phone }}</li>@endif- @if (isset($asset->assetLoc))- <li>{{ $asset->assetLoc->name }}</li>- <li>{{ $asset->assetLoc->address }}- @if ($asset->assetLoc->address2!='')- {{ $asset->assetLoc->address2 }}+ @if (isset($asset->location))+ <li>{{ $asset->location->name }}</li>+ <li>{{ $asset->location->address }}+ @if ($asset->location->address2!='')+ {{ $asset->location->address2 }}@endif</li>- <li>{{ $asset->assetLoc->city }}- @if (($asset->assetLoc->city!='') && ($asset->assetLoc->state!=''))+ <li>{{ $asset->location->city }}+ @if (($asset->location->city!='') && ($asset->location->state!='')),@endif- {{ $asset->assetLoc->state }} {{ $asset->assetLoc->zip }}+ {{ $asset->location->state }} {{ $asset->location->zip }}</li>@endif</ul>