I have got several project, each with "Chief project" (CP) and "Developers", etc ...
I want CP receive mail, for their assigned projects only, when action is done on demand ( creation, assignment, etc ...).
Is it a built-in functionality ? Should i do something ?
At now, only administrators receive mail, because i add some code in the file core / email.api in function : function email_collect_recipients( $p_bug_id, $p_notify_type ) :
Code: Select all
# --------------------------------------------------------------------- DEBUT
# Ajout BPO - Juin 2005 - En cas d'ajout de demande, on envoi
# systematiquement un mail aux administrateurs
# On va donc ajouter dans la table memoire,
# les ID des administrateurs ( Acces Level = 90 )
# ---------------------------------------------------------------------------
if(strcmp($p_notify_type,"new")==0)
{
$t_mantis_user_table = config_get( 'mantis_user_table' );
$query = "SELECT DISTINCT id FROM $t_mantis_user_table
WHERE `access_level` > 89";
$result = db_query ( $query );
$count = db_num_rows( $result );
for ( $i=0 ; $i < $count ; $i++ )
{
$t_user_id = db_result( $result, $i );
if(strcmp(auth_get_current_user_id(),$t_user_id)<>0)
{
$t_recipients[$t_user_id] = true;
}
}
}
# --------------------------------------------------------------------- FINFor each account, mail receiving options are correct.
Do you have idee for this problem ? Thanks.