Skip to content

Commit 476c834

Browse files
authored
Update mail.class.php
1 parent 7bb4417 commit 476c834

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

core/class/mail.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ class mailCmd extends cmd {
5656
/* * *********************Methode d'instance************************* */
5757

5858
public function preSave() {
59-
if ($this->getLogicalId() == 'send_to_custom_email') return;
60-
59+
if ($this->getLogicalId() == 'send_to_custom_email'){
60+
$this->setConfiguration('recipient','');
61+
return;
62+
}
6163
$this->setType('action');
6264
$this->setSubType('message');
6365
if ($this->getConfiguration('recipient') == '') {

0 commit comments

Comments
 (0)