mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Implement action "Decline"
This commit is contained in:
parent
633f03e853
commit
689fa752bf
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user