|
@@ -433,6 +433,11 @@ if (empty($reshook)) {
|
|
|
} else {
|
|
|
$idprod = GETPOST('idprod', 'int');
|
|
|
$tva_tx = '';
|
|
|
+
|
|
|
+ if (!empty($conf->global->MAIN_DISABLE_FREE_LINES) && $idprod <= 0) {
|
|
|
+ setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("ProductOrService")), null, 'errors');
|
|
|
+ $error++;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$qty = price2num(GETPOST('qty'.$predef, 'alpha'), 'MS', 2);
|