From 0295ab44e58d58d852ad548efc18d78efe2905b8 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:13:56 +0100 Subject: [PATCH 1/4] send welcome email bug fixed welcome email sending bug --- system/controllers/customers.php | 2 +- ui/ui/customers-add.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 98e52762..96188b68 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -523,7 +523,7 @@ switch ($action) { 'args' => [$d['phonenumber'], $welcomeMessage] ], 'email' => [ - 'enabled' => isset($_POST['email']), + 'enabled' => isset($_POST['mail']), 'method' => 'Message::sendEmail', 'args' => [$d['email'], $emailSubject, $welcomeMessage, $d['email']] ] diff --git a/ui/ui/customers-add.tpl b/ui/ui/customers-add.tpl index cc2ff88c..e9df3f7d 100644 --- a/ui/ui/customers-add.tpl +++ b/ui/ui/customers-add.tpl @@ -115,7 +115,7 @@
- {Lang::T('Not Working for freeradius')} + {Lang::T('Also Working for freeradius')}
@@ -139,7 +139,7 @@ {Lang::T('SMS')} -