From 481e3108a15e1aba694019dfd5278be3bf47349b Mon Sep 17 00:00:00 2001 From: sonikf <93765174+sonikf@users.noreply.github.com> Date: Tue, 19 Aug 2025 12:44:18 +0300 Subject: [PATCH] remove duplicate (#35000) --- htdocs/expedition/card.php | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index ea132a50210..f34d13eb544 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -2163,39 +2163,6 @@ if ($action == 'create') { $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('UnsignShipping'), $text, 'confirm_unsign', '', 0, 1); } - // Confirm sign - if ($action == 'sign') { - $text = $langs->trans('ConfirmSignIntervention'); - if (isModEnabled('notification')) { - require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php'; - $notify = new Notify($db); - $text .= '
'; - $text .= $notify->confirmMessage('SHIPPING_MODIFY', $object->socid, $object); - } - $formquestion = []; - $formquestion[] = [ - 'type' => 'select', - 'name' => 'signed_status', - 'select_show_empty' => 1, - 'label' => ''.$langs->trans('SignStatus').'', - 'values' => $object->getSignedStatusLocalisedArray(), - //'default' => $object->signed_status - ]; - $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('SignIntervention'), $text, 'confirm_sign', $formquestion, 0, 1); - } - - // Confirm unsign - if ($action == 'unsign') { - $text = $langs->trans('ConfirmUnsignIntervention'); - if (isModEnabled('notification')) { - require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php'; - $notify = new Notify($db); - $text .= '
'; - $text .= $notify->confirmMessage('SHIPPING_MODIFY', $object->socid, $object); - } - $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('UnsignIntervention'), $text, 'confirm_unsign', '', 0, 1); - } - // Call Hook formConfirm $parameters = array('formConfirm' => $formconfirm); $reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook