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 @@ -272,13 +272,18 @@ public function postActivityReport(Request $request)
272272 }
273273 }
274274
275+ if ($ actionlog ->item ){
276+ $ item_name = e ($ actionlog ->item ->getDisplayNameAttribute ());
277+ } else {
278+ $ item_name ='' ;
279+ }
275280
276281 $ row = [
277282 $ actionlog ->created_at ,
278283 ($ actionlog ->user ) ? e ($ actionlog ->user ->getFullNameAttribute ()) : '' ,
279284 $ actionlog ->present ()->actionType (),
280285 e ($ actionlog ->itemType ()),
281- ($ actionlog ->itemType ()=='user ' ) ? $ actionlog ->filename : e ( $ actionlog -> item -> getDisplayNameAttribute ()) ,
286+ ($ actionlog ->itemType ()=='user ' ) ? $ actionlog ->filename : $ item_name ,
282287 $ target_name ,
283288 ($ actionlog ->note ) ? e ($ actionlog ->note ): '' ,
284289 $ actionlog ->log_meta ,
You can’t perform that action at this time.
0 commit comments