mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 23:54:12 -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 == '') {
|
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 {
|
} else {
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,7 +120,11 @@
|
||||||
<td>{{ date("M d, Y g:iA", strtotime($activity->created_at)) }}</td>
|
<td>{{ date("M d, Y g:iA", strtotime($activity->created_at)) }}</td>
|
||||||
<td>
|
<td>
|
||||||
@if ($activity->action_type!='requested')
|
@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
|
@endif
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue