Merge pull request #21362 from bb2a/FIX---Cancel-order
FIX - Right close order
This commit is contained in:
commit
bc81f372ac
@ -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&token='.newToken().'&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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user