@@ -204,10 +204,10 @@ public function newComment(Comment $comment, $request)
204204 if (!is_null ($ recipient )) {
205205 // Register the notified email
206206 $ notification = CommentNotification::create ([
207- 'comment_id ' => $ comment ->id ,
208- 'name ' => $ recipient ->name ,
209- 'email ' => $ recipient ->email ,
210- 'member_id ' => $ member_id ,
207+ 'comment_id ' => $ comment ->id ,
208+ 'name ' => $ recipient ->name ,
209+ 'email ' => $ recipient ->email ,
210+ 'member_id ' => $ member_id ,
211211 ]);
212212
213213 // Add email to actual mail recipients
@@ -296,29 +296,29 @@ public function notificationResend(Request $request)
296296 if (is_null ($ notification )) {
297297 // Register the notified email
298298 $ notification = CommentNotification::create ([
299- 'comment_id ' => $ comment ->id ,
300- 'name ' => $ recipient ->name ,
301- 'email ' => $ recipient ->email ,
302- 'member_id ' => $ recipient ->id ,
299+ 'comment_id ' => $ comment ->id ,
300+ 'name ' => $ recipient ->name ,
301+ 'email ' => $ recipient ->email ,
302+ 'member_id ' => $ recipient ->id ,
303303 ]);
304304
305305 if ($ comment ->notifications ->count () == 0 ) {
306306 // No previous registered notifications
307307 if ($ ticket ->agent ->id == $ comment ->owner ->id ) {
308308 // Message from agent to owner, so we register the non registered past owner notification
309309 $ notification = CommentNotification::create ([
310- 'comment_id ' => $ comment ->id ,
311- 'name ' => $ ticket ->owner ->name ,
312- 'email ' => $ ticket ->owner ->email ,
313- 'member_id ' => $ ticket ->owner ->id ,
310+ 'comment_id ' => $ comment ->id ,
311+ 'name ' => $ ticket ->owner ->name ,
312+ 'email ' => $ ticket ->owner ->email ,
313+ 'member_id ' => $ ticket ->owner ->id ,
314314 ]);
315315 } elseif ($ ticket ->owner ->id == $ comment ->owner ->id ) {
316316 // Message from owner to agent, so we register the non registered past agent notification
317317 $ notification = CommentNotification::create ([
318- 'comment_id ' => $ comment ->id ,
319- 'name ' => $ ticket ->agent ->name ,
320- 'email ' => $ ticket ->agent ->email ,
321- 'member_id ' => $ ticket ->agent ->id ,
318+ 'comment_id ' => $ comment ->id ,
319+ 'name ' => $ ticket ->agent ->name ,
320+ 'email ' => $ ticket ->agent ->email ,
321+ 'member_id ' => $ ticket ->agent ->id ,
322322 ]);
323323 }
324324 }
0 commit comments