|
@@ -1967,12 +1967,11 @@ if ($action == 'create' && $user->rights->commande->creer)
|
|
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('CloneOrder'), $langs->trans('ConfirmCloneOrder', $object->ref), 'confirm_clone', $formquestion, 'yes', 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;
|
|
|
- }
|
|
|
+ // Call Hook 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;
|
|
|
|
|
|
// Print form confirm
|
|
|
print $formconfirm;
|