Update fraise.modules.php
This commit is contained in:
parent
780e8ce470
commit
a9e4fcfdca
@ -73,7 +73,7 @@ class mailing_fraise extends MailingTargets
|
||||
$statssql=array();
|
||||
|
||||
$statssql[0] ="SELECT '".$this->db->escape($langs->trans("FundationMembers"))."' as label, count(*) as nb";
|
||||
$statssql[0].=" FROM ".MAIN_DB_PREFIX."adherent where statut = 1 and entity = ".$conf->entity;
|
||||
$statssql[0].=" FROM ".MAIN_DB_PREFIX."adherent where statut = 1 and entity IN (".getEntity('member').")";
|
||||
|
||||
return $statssql;
|
||||
}
|
||||
@ -93,7 +93,7 @@ class mailing_fraise extends MailingTargets
|
||||
|
||||
$sql = "SELECT count(distinct(a.email)) as nb";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."adherent as a";
|
||||
$sql .= " WHERE (a.email IS NOT NULL AND a.email != '') AND a.entity = ".$conf->entity;
|
||||
$sql .= " WHERE (a.email IS NOT NULL AND a.email != '') AND a.entity IN (".getEntity('member').")";
|
||||
|
||||
// La requete doit retourner un champ "nb" pour etre comprise
|
||||
// par parent::getNbOfRecipients
|
||||
|
||||
Loading…
Reference in New Issue
Block a user