FIX : To have only the sender's entity when sending mail (#31053)
* fix * Update html.formmail.class.php * Update html.formmail.class.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr> Co-authored-by: lvessiller-opendsi <lvessiller@open-dsi.fr>
This commit is contained in:
parent
40e4a6959f
commit
e1b919366e
1 changed files with 1 additions and 1 deletions
|
|
@ -627,7 +627,7 @@ class FormMail extends Form
|
|||
|
||||
// Add also email aliases from the c_email_senderprofile table
|
||||
$sql = "SELECT rowid, label, email FROM ".$this->db->prefix()."c_email_senderprofile";
|
||||
$sql .= " WHERE active = 1 AND (private = 0 OR private = ".((int) $user->id).")";
|
||||
$sql .= " WHERE active = 1 AND (private = 0 OR private = ".((int) $user->id).") AND entity in getEntity('c_email_senderprofile')";
|
||||
$sql .= " ORDER BY position";
|
||||
$resql = $this->db->query($sql);
|
||||
if ($resql) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue