Skip to content

Commit

Permalink
can replace formconfirm in order supplier
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Jan 7, 2020
1 parent f058732 commit 4b90d10
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions htdocs/fourn/commande/card.php
Expand Up @@ -1907,13 +1907,10 @@
$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('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('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
print $formconfirm;
Expand Down

0 comments on commit 4b90d10

Please sign in to comment.