mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
715c9aa780
|
@ -376,7 +376,10 @@ class Asset extends Depreciable
|
|||
{
|
||||
|
||||
if ($this->name == '') {
|
||||
return $this->model->name.' ('.$this->asset_tag.')';
|
||||
if ($this->model) {
|
||||
return $this->model->name.' ('.$this->asset_tag.')';
|
||||
}
|
||||
return $this->asset_tag;
|
||||
} else {
|
||||
return $this->name;
|
||||
}
|
||||
|
|
|
@ -120,7 +120,11 @@
|
|||
<td>{{ date("M d, Y g:iA", strtotime($activity->created_at)) }}</td>
|
||||
<td>
|
||||
@if ($activity->action_type!='requested')
|
||||
<a href="{{ route('view/user', $activity->user_id) }}">{{ $activity->adminlog->fullName() }}</a>
|
||||
@if ($activity->adminlog)
|
||||
<a href="{{ route('view/user', $activity->user_id) }}">{{ $activity->adminlog->fullName() }}</a>
|
||||
@else
|
||||
Deleted Admin
|
||||
@endif
|
||||
@endif
|
||||
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue