diff --git a/htdocs/alumni/langs/en_US/alumni.lang b/htdocs/alumni/langs/en_US/alumni.lang index a33afdad0..87a284cbc 100644 --- a/htdocs/alumni/langs/en_US/alumni.lang +++ b/htdocs/alumni/langs/en_US/alumni.lang @@ -58,3 +58,7 @@ Results=Results EventChoices=Event choices NewVoteEntry=New event choice NbOfVotes=Number of event choices +SetToPaid=Set to paid +SetToUnpaid=Set to unpaid +SetToDoNotReEngage=Set to do not re-engage +SetToCanReEngage=Set to can re-engage diff --git a/htdocs/alumni/survey_list.php b/htdocs/alumni/survey_list.php index 4a804cbc8..847ad9a15 100644 --- a/htdocs/alumni/survey_list.php +++ b/htdocs/alumni/survey_list.php @@ -279,6 +279,27 @@ $result = $tmpobject->updateExtraField('a_paye', null, $user); } } + + if ($massaction == 'settodonotreengage' && $permissiontoadd) { + foreach ($toselect as $toselectid) { + $tmpobject = new Survey($db); + $tmpobject->fetch($toselectid); + + $tmpobject->array_options = array('options_ne_pas_relancer' => 1); + + $result = $tmpobject->updateExtraField('ne_pas_relancer', null, $user); + } + } + if ($massaction == 'settoreengage' && $permissiontoadd) { + foreach ($toselect as $toselectid) { + $tmpobject = new Survey($db); + $tmpobject->fetch($toselectid); + + $tmpobject->array_options = array('options_ne_pas_relancer' => 0); + + $result = $tmpobject->updateExtraField('ne_pas_relancer', null, $user); + } + } } @@ -515,6 +536,8 @@ $arrayofmassactions['predelete'] = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Delete"); $arrayofmassactions['settopaid'] = img_picto('', 'currency', 'class="pictofixedwidth"').$langs->trans("SetToPaid"); $arrayofmassactions['setunpaid'] = img_picto('', 'circle', 'class="pictofixedwidth"').$langs->trans("SetToUnPaid"); + $arrayofmassactions['settodonotreengage'] = img_picto('', 'circle', 'class="pictofixedwidth"').$langs->trans("SetToDoNotReEngage"); + $arrayofmassactions['settoreengage'] = img_picto('', 'circle', 'class="pictofixedwidth"').$langs->trans("SetToCanReEngage"); } if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) { $arrayofmassactions = array();