fix cancel on makeorder (supplier_order)

This commit is contained in:
Christian Foellmann 2021-07-27 16:18:06 +02:00
parent 079b014b14
commit cefbcf03f6

View File

@ -983,7 +983,9 @@ if (empty($reshook)) {
if ($action == 'commande') {
$methodecommande = GETPOST('methodecommande', 'int');
if ($methodecommande <= 0) {
if ($cancel) {
$action = '';
} elseif ($methodecommande <= 0) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("OrderMode")), null, 'errors');
$action = 'makeorder';
}