Skip to content

A free open source IT asset/license management system

Fixed assetloc to location

snipe95b6e0d2d866
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php
index 83cf3bd6ae..aea6192893 100755
--- a/resources/views/hardware/edit.blade.php
+++ b/resources/views/hardware/edit.blade.php
@@ -61,8 +61,8 @@
@include ('partials.forms.edit.order_number')
<?php
$currency_type=null;
- if ($item->id && $item->assetloc) {
- $currency_type = $item->assetloc->currency;
+ if ($item->id && $item->location) {
+ $currency_type = $item->location->currency;
}
?>
@include ('partials.forms.edit.purchase_cost', ['currency_type' => $currency_type])