Skip to content

Commit

Permalink
fix (#32012)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas905 authored Nov 22, 2024
1 parent 32b18d6 commit acdab17
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions htdocs/fourn/facture/card.php
Original file line number Diff line number Diff line change
@@ -3030,14 +3030,12 @@ function setRadioForTypeOfInvoice() {
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 0, 1);
}

if (!$formconfirm) {
$parameters = array('formConfirm' => $formconfirm, 'lineid'=>$lineid);
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
$formconfirm .= $hookmanager->resPrint;
} elseif ($reshook > 0) {
$formconfirm = $hookmanager->resPrint;
}
$parameters = array('formConfirm' => $formconfirm, 'lineid'=>$lineid);
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
$formconfirm .= $hookmanager->resPrint;
} elseif ($reshook > 0) {
$formconfirm = $hookmanager->resPrint;
}

// Print form confirm

0 comments on commit acdab17

Please sign in to comment.