CHANGE UI LEVEL FIXES - VADIVEL J 2025-08-21
This commit is contained in:
parent
49c25e66f7
commit
ba95c07642
@ -363,7 +363,11 @@ class ThzController extends BaseController
|
|||||||
|
|
||||||
private function sendEmail( $templateName, $data , $to_email , $ticketId){
|
private function sendEmail( $templateName, $data , $to_email , $ticketId){
|
||||||
|
|
||||||
$mail = $this->ticketMailTemplateModel->where('template_name',$templateName )->findAll();
|
$mail = $this->ticketMailTemplateModel->where('template_name',$templateName )->findAll()[0] ?? [];
|
||||||
|
|
||||||
|
if(empty($mail)){
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
$mail['subject'] = str_replace('%subject%', $data['subject'] ?? '', $mail['subject']);
|
$mail['subject'] = str_replace('%subject%', $data['subject'] ?? '', $mail['subject']);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user