Skip to content

Commit

Permalink
Zenhub #1346 Incorrect recipients name for notifications sent for sha…
Browse files Browse the repository at this point in the history
…red goal
  • Loading branch information
jizhaogit authored and telusdcinco committed Aug 15, 2024
1 parent 07ab9c7 commit 0da706c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/GoalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,9 @@ public function addComment(Request $request, $id)
$sendMail->alert_format = 'E';
$sendMail->template = 'EMPLOYEE_COMMENT_THE_GOAL';

array_push($sendMail->bindvariables, $goal->user->name); // %1 Recipient of the email
$recipient_user = User::findOrFail($related_user->id);

array_push($sendMail->bindvariables, $recipient_user->name); // %1 Recipient of the email
array_push($sendMail->bindvariables, $comment_user->name ); // %2 Person who added the comment
array_push($sendMail->bindvariables, $goal->title); // %3 Goal title
array_push($sendMail->bindvariables, $comment->comment ); // %4 added comment
Expand Down

0 comments on commit 0da706c

Please sign in to comment.