Merge pull request #21362 from bb2a/FIX---Cancel-order

FIX - Right close order
This commit is contained in:
Laurent Destailleur 2022-06-27 11:46:55 +02:00 committed by GitHub
commit bc81f372ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2799,8 +2799,8 @@ if ($action == 'create' && $usercancreate) {
} }
// Cancel order // Cancel order
if ($object->statut == Commande::STATUS_VALIDATED && (!empty($usercanclose) || !empty($usercancancel))) { if ($object->statut == Commande::STATUS_VALIDATED && !empty($usercancancel)) {
print dolGetButtonAction('', $langs->trans('Cancel'), 'danger', $_SERVER["PHP_SELF"].'?action=cancel&amp;token='.newToken().'&amp;id='.$object->id, ''); print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=cancel&token='.newToken().'">'.$langs->trans("Cancel").'</a>';
} }
// Delete order // Delete order