File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -275,13 +275,18 @@ public function postActivityReport(Request $request)
275275 }
276276 }
277277
278+ if ($ actionlog ->item ){
279+ $ item_name = e ($ actionlog ->item ->getDisplayNameAttribute ());
280+ } else {
281+ $ item_name = '' ;
282+ }
278283
279284 $ row = [
280285 $ actionlog ->created_at ,
281286 ($ actionlog ->user ) ? e ($ actionlog ->user ->getFullNameAttribute ()) : '' ,
282287 $ actionlog ->present ()->actionType (),
283288 e ($ actionlog ->itemType ()),
284- ($ actionlog ->itemType () == 'user ' ) ? $ actionlog ->filename : e ( $ actionlog -> item -> getDisplayNameAttribute ()) ,
289+ ($ actionlog ->itemType () == 'user ' ) ? $ actionlog ->filename : $ item_name ,
285290 $ target_name ,
286291 ($ actionlog ->note ) ? e ($ actionlog ->note ) : '' ,
287292 $ actionlog ->log_meta ,
You can’t perform that action at this time.
0 commit comments