From 1964a3e595ddd1da95429a911f5c37ddd13cc8f0 Mon Sep 17 00:00:00 2001 From: William Mead Date: Tue, 9 Jan 2024 15:09:07 +0100 Subject: [PATCH] Added notification information on intervention done confirmation message --- htdocs/fichinter/card.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php index 0f83e21ea93..05d87138630 100644 --- a/htdocs/fichinter/card.php +++ b/htdocs/fichinter/card.php @@ -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 .= '
'; + $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