Skip to content

A free open source IT asset/license management system

or statement for if/else

akemidx82c38a8b181d
diff --git a/resources/views/hardware/bulk-delete.blade.php b/resources/views/hardware/bulk-delete.blade.php
index fd48f89100..0e9f24ae50 100644
--- a/resources/views/hardware/bulk-delete.blade.php
+++ b/resources/views/hardware/bulk-delete.blade.php
@@ -42,10 +42,10 @@
<td>{{ $asset->id }}</td>
<td>{{ $asset->present()->name() }}</td>
<td>
- @if ($asset->location)
- {{ $asset->location->name }}
- @elseif($asset->rtd_location)
- {{ $asset->defaultLoc->name }}
+ @if ($asset->location || $asset->location_id)
+ {{ $asset->location->present()->name() }}
+ @elseif($asset->rtd_location || $asset->rtd_location_id)
+ {{ $asset->defaultLoc->present()->name() }}
@endif
</td>
<td>