Use new location method for hardware view

This commit is contained in:
snipe
2017-10-28 02:37:59 -07:00
parent 0a114c7daf
commit 3991f79115
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -594,8 +594,8 @@ class AssetsController extends Controller
if (isset($asset)) {
if (!is_null($asset->assetloc)) {
$use_currency = $asset->assetloc->currency;
if ($asset->location) {
$use_currency = $asset->location->currency;
} else {
if ($settings->default_currency!='') {
$use_currency = $settings->default_currency;