From d7f2bceea287279e0e79ce291bada65d1db7b70a Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 4 Dec 2017 20:45:20 -0800 Subject: [PATCH] Fixed incorrect property on supplier --- app/Http/Controllers/ReportsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 : ''; }