A free open source IT asset/license management system
Use new location method on asset API
snipe7a543fa6d505
diff --git a/app/Http/Transformers/AssetsTransformer.php b/app/Http/Transformers/AssetsTransformer.phpindex 92ba702a15..304d336afc 100644--- a/app/Http/Transformers/AssetsTransformer.php+++ b/app/Http/Transformers/AssetsTransformer.php@@ -54,9 +54,9 @@ class AssetsTransformer'id' => (int) $asset->company->id,'name'=> e($asset->company->name)] : null,- 'location' => ($asset->assetLoc) ? [- 'id' => (int) $asset->assetLoc->id,- 'name'=> e($asset->assetLoc->name)+ 'location' => ($asset->location) ? [+ 'id' => (int) $asset->location->id,+ 'name'=> e($asset->location->name)] : null,'rtd_location' => ($asset->defaultLoc) ? ['id' => (int) $asset->defaultLoc->id,