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:
Laurent Destailleur 2024-01-10 14:34:31 +01:00 committed by GitHub
commit b2d1c8a0b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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