@@ -155,7 +155,7 @@ public function transformActionlog (Actionlog $actionlog, $settings = null)
155155 'id ' => (int ) $ actionlog ->item ->id ,
156156 'name ' => e ($ actionlog ->item ->display_name ) ?? null ,
157157 'type ' => e ($ actionlog ->itemType ()),
158- 'serial ' =>e ($ actionlog ->item ->serial ) ? e ($ actionlog ->item ->serial ) : null
158+ 'serial ' => e ($ actionlog ->item ->serial ) ? e ($ actionlog ->item ->serial ) : null
159159 ] : null ,
160160 'location ' => ($ actionlog ->location ) ? [
161161 'id ' => (int ) $ actionlog ->location ->id ,
@@ -168,7 +168,7 @@ public function transformActionlog (Actionlog $actionlog, $settings = null)
168168 'action_type ' => $ actionlog ->present ()->actionType (),
169169 'admin ' => ($ actionlog ->adminuser ) ? [
170170 'id ' => (int ) $ actionlog ->adminuser ->id ,
171- 'name ' => e ($ actionlog ->adminuser ->display_name ),
171+ 'name ' => e ($ actionlog ->adminuser ->display_name ) ?? null ,
172172 'first_name ' => e ($ actionlog ->adminuser ->first_name ),
173173 'last_name ' => e ($ actionlog ->adminuser ->last_name )
174174 ] : null ,
@@ -180,7 +180,7 @@ public function transformActionlog (Actionlog $actionlog, $settings = null)
180180 ] : null ,
181181 'target ' => ($ actionlog ->target ) ? [
182182 'id ' => (int ) $ actionlog ->target ->id ,
183- 'name ' => ($ actionlog ->target ->display_name ) ?? null ,
183+ 'name ' => e ($ actionlog ->target ->display_name ) ?? null ,
184184 'type ' => e ($ actionlog ->targetType ()),
185185 ] : null ,
186186
0 commit comments