File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,10 @@ public function showAssetName()
376376 {
377377
378378 if ($ this ->name == '' ) {
379- return $ this ->model ->name .' ( ' .$ this ->asset_tag .') ' ;
379+ if ($ this ->model ) {
380+ return $ this ->model ->name .' ( ' .$ this ->asset_tag .') ' ;
381+ }
382+ return $ this ->asset_tag ;
380383 } else {
381384 return $ this ->name ;
382385 }
Original file line number Diff line number Diff line change 120120 <td >{{ date (" M d, Y g:iA" , strtotime ($activity -> created_at )) } } </td >
121121 <td >
122122 @if ($activity -> action_type != ' requested' )
123- <a href =" {{ route (' view/user' , $activity -> user_id ) } }" >{{ $activity -> adminlog -> fullName () } } </a >
123+ @if ($activity -> adminlog )
124+ <a href =" {{ route (' view/user' , $activity -> user_id ) } }" >{{ $activity -> adminlog -> fullName () } } </a >
125+ @else
126+ Deleted Admin
127+ @endif
124128 @endif
125129
126130 </td >
You can’t perform that action at this time.
0 commit comments