Check for adminuser withTrashed
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
93dab12461
commit
992214fc66
2 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ class AssetModel extends SnipeModel
|
|||
*/
|
||||
public function adminuser()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\User::class, 'created_by');
|
||||
return $this->belongsTo(\App\Models\User::class, 'created_by')->withTrashed();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
</li>
|
||||
@endif
|
||||
|
||||
@if ($model->created_by)
|
||||
@if ($model->adminuser)
|
||||
<li>{{ trans('general.created_by') }}:
|
||||
{{ $model->adminuser->present()->name() }}
|
||||
</li>
|
||||
|
|
Loading…
Add table
Reference in a new issue