Merge pull request #27351 from W1W1-M/fix-intervention-done-confirmation-notification
FIX notification information on intervention done confirmation message (v19+)
This commit is contained in:
commit
b2d1c8a0b2
1 changed files with 8 additions and 1 deletions
|
|
@ -1139,7 +1139,14 @@ if ($action == 'create') {
|
|||
|
||||
// Confirm done
|
||||
if ($action == 'classifydone') {
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('CloseIntervention'), $langs->trans('ConfirmCloseIntervention'), 'confirm_done', '', 0, 1);
|
||||
$text = $langs->trans('ConfirmCloseIntervention');
|
||||
if (isModEnabled('notification')) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
|
||||
$notify = new Notify($db);
|
||||
$text .= '<br>';
|
||||
$text .= $notify->confirmMessage('FICHINTER_CLOSE', $object->socid, $object);
|
||||
}
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('CloseIntervention'), $text, 'confirm_done', '', 0, 1);
|
||||
}
|
||||
|
||||
// Confirm back to draft
|
||||
|
|
|
|||
Loading…
Reference in a new issue