Implement action "Decline"

This commit is contained in:
Laurent Destailleur 2020-08-24 00:23:18 +02:00
parent 633f03e853
commit 689fa752bf

View File

@ -163,6 +163,12 @@ if (empty($reshook))
{
$object->setProject(GETPOST('projectid', 'int'));
}
if ($action == 'confirm_decline' && $confirm == 'yes' && $permissiontoadd) {
$result = $object->setStatut($object::STATUS_REFUSED, null, '', 'RECRUITMENTCANDIDATURE_DECLINE');
if ($result < 0) {
setEventMessages($object->error, $object->errors, 'errors');
}
}
// Actions to send emails
$triggersendname = 'RECRUITMENTCANDIDATURE_SENTBYMAIL';