fix cancel on makeorder (supplier_order)
This commit is contained in:
parent
079b014b14
commit
cefbcf03f6
@ -983,7 +983,9 @@ if (empty($reshook)) {
|
|||||||
if ($action == 'commande') {
|
if ($action == 'commande') {
|
||||||
$methodecommande = GETPOST('methodecommande', 'int');
|
$methodecommande = GETPOST('methodecommande', 'int');
|
||||||
|
|
||||||
if ($methodecommande <= 0) {
|
if ($cancel) {
|
||||||
|
$action = '';
|
||||||
|
} elseif ($methodecommande <= 0) {
|
||||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("OrderMode")), null, 'errors');
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("OrderMode")), null, 'errors');
|
||||||
$action = 'makeorder';
|
$action = 'makeorder';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user