Commit b6280f22 authored by Skia's avatar Skia

Update mailing bureau assos

parent 53ffcce2
...@@ -233,12 +233,18 @@ function reset_default_mailing($site, $asso) { ...@@ -233,12 +233,18 @@ function reset_default_mailing($site, $asso) {
error_log("Asso ".$asso->nom_unix." is hidden, not regenerating its mailing list"); error_log("Asso ".$asso->nom_unix." is hidden, not regenerating its mailing list");
return; return;
} }
if ($asso->nom_unix === "ae") if ($asso->nom_unix === "ae") {
$mailing->create("bureau", $asso->id, 1); $mailing->create("bureau", $asso->id, 1);
else foreach($asso->get_team_member() as $user_id) {
$mailing->add_member($user_id);
}
} else {
$mailing->create("", $asso->id, 1); $mailing->create("", $asso->id, 1);
foreach($asso->get_team_member() as $user_id) { foreach(array($asso->get_member_for_role(ROLEASSO_PRESIDENT),
$mailing->add_member($user_id); $asso->get_member_for_role(ROLEASSO_VICEPRESIDENT),
$asso->get_member_for_role(ROLEASSO_SECRETAIRE)) as $user_id) {
$mailing->add_member($user_id);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment