File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 4848 <td >{{{ $activity -> adminlog -> fullName () } }} </td >
4949
5050 <td >
51- @if ($activity -> asset_type == " hardware" )
51+ @if (( $activity -> assetlog ) && ( $activity -> asset_type == " hardware" ) )
5252 {{ $activity -> assetlog -> showAssetName () } }
53- @elseif ($activity -> asset_type == " software" )
53+ @elseif (( $activity -> licenselog ) && ( $activity -> asset_type == " software" ) )
5454 {{ $activity -> licenselog -> name } }
55- @elseif ($activity -> asset_type == " accessory" )
55+ @elseif (( $activity -> asset_type ) && ( $activity -> asset_type == " accessory" ))
5656 {{ $activity -> accessorylog -> name } }
5757 @endif
5858
Original file line number Diff line number Diff line change 5252 </td >
5353 <td >
5454
55- @if ($log_action -> asset_type == " hardware" )
56- {{ $log_action -> assetlog -> showAssetName () } }
57- @elseif ($log_action -> asset_type == " software" )
58- {{ $log_action -> licenselog -> name } }
59- @elseif ($log_action -> asset_type == " accessory" )
60- {{ $log_action -> accessorylog -> name } }
61- @endif
55+ @if (( $log_action -> assetlog ) && ( $log_action -> asset_type == " hardware" ) )
56+ {{ $log_action -> assetlog -> showAssetName () } }
57+ @elseif (( $log_action -> licenselog ) && ( $log_action -> asset_type == " software" ) )
58+ {{ $log_action -> licenselog -> name } }
59+ @elseif (( $log_action -> asset_type ) && ( $log_action -> asset_type == " accessory" ))
60+ {{ $log_action -> accessorylog -> name } }
61+ @endif
6262
6363
6464 </td >
You can’t perform that action at this time.
0 commit comments