Skip to content

Commit 58ff929

Browse files
committed
Fixes error when no model present because new asset
1 parent 49f25a2 commit 58ff929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/backend/hardware/edit.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
</div>
9191
</div>
9292

93-
@if ($asset->model->show_mac_address != 0)
93+
@if (isset($asset->model)) && ($asset->model->show_mac_address != 0)
9494
<!-- MAC Address -->
9595
<div class="form-group {{ $errors->has('mac_address') ? ' has-error' : '' }}">
9696
<label for="mac_address" class="col-md-2 control-label">@lang('admin/hardware/form.mac_address')</label>

0 commit comments

Comments
 (0)