diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index b568df42cd..affdbda069 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -645,7 +645,7 @@ class ReportsController extends Controller } if ($request->has('supplier')) { - $row[] = ($asset->location) ? $asset->supplier->name : ''; + $row[] = ($asset->supplier) ? $asset->supplier->name : ''; }