NEW : Move of mailing attendies
This commit is contained in:
parent
0100cb4192
commit
415489c9fc
@ -90,7 +90,7 @@ if (!$error && $massaction == 'confirm_presend_attendees') {
|
|||||||
foreach ($toselect as $toselectid) {
|
foreach ($toselect as $toselectid) {
|
||||||
$result = $objecttmp->fetch($toselectid);
|
$result = $objecttmp->fetch($toselectid);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
$attendees = $attendee->fetchAll('', '', 0, 0, array('t.fk_actioncomm' => $objecttmp->id));
|
$attendees = $attendee->fetchAll();
|
||||||
if (is_array($attendees) && count($attendees) > 0) {
|
if (is_array($attendees) && count($attendees) > 0) {
|
||||||
foreach ($attendees as $attmail) {
|
foreach ($attendees as $attmail) {
|
||||||
if (!empty($attmail->email)) {
|
if (!empty($attmail->email)) {
|
||||||
@ -119,7 +119,7 @@ if (!$error && $massaction == 'confirm_presend_attendees') {
|
|||||||
$receiver = array($receiver);
|
$receiver = array($receiver);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!trim($_POST['sendto']) && count($receiver) == 0 && count($listofselectedid) == 1) { // if only one recipient, receiver is mandatory
|
if (!trim($_POST['sendto']) && count($receiver) == 0 && count($listofselectedid) == 0) { // if only one recipient, receiver is mandatory
|
||||||
$error++;
|
$error++;
|
||||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Recipient")), null, 'warnings');
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Recipient")), null, 'warnings');
|
||||||
$massaction = 'presend_attendees';
|
$massaction = 'presend_attendees';
|
||||||
|
|||||||
@ -37,7 +37,7 @@ if ($massaction == 'presend_attendees') {
|
|||||||
foreach ($arrayofselected as $toselectid) {
|
foreach ($arrayofselected as $toselectid) {
|
||||||
$result = $objecttmp->fetch($toselectid);
|
$result = $objecttmp->fetch($toselectid);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
$attendees = $attendee->fetchAll('', '', 0, 0, array('t.fk_actioncomm'=>$objecttmp->id));
|
$attendees = $attendee->fetchAll();
|
||||||
if (is_array($attendees) && count($attendees)>0) {
|
if (is_array($attendees) && count($attendees)>0) {
|
||||||
foreach ($attendees as $attmail) {
|
foreach ($attendees as $attmail) {
|
||||||
if (!empty($attmail->email)) {
|
if (!empty($attmail->email)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user