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 @@